API Support Forum
OEC API > FIX Support > Logon Request causes neverending Resend Request messages
Author Topic: Logon Request causes neverending Resend Request messages
(8 messages, Page 1 of 1)
Moderators: VPfau
CParker2467
Posts: 4
Joined: Feb 24, 2017


Posted: Mar 08, 2017 @ 11:11 AM             Msg. 1 of 8
I am trying to send a logon request message, like this:

8=FIX.4.2|9=123|35=A|49=XXXX|56=OEC_TEST|34=1|52=20170308-16:58:29.489|98=0|141=Y|108=30|12003=9e61a8bc-0a31-4542-ad85-33ebab0e4e86|10=046|

But as soon as I send it, I get a flood of resend messages back that never end, like this:

8=FIX.4.2|9=71||35=2|49=XXXX|56=OEC_TEST|34=2|52=20170308-16:58:29.489|7=1|16=0|10=090|0|12003=9e61a8bc-0a31-4542-ad85-33ebab0e4e86|10=046|
8=FIX.4.2|9=71||35=2|49=XXXX|56=OEC_TEST|34=3|52=20170308-16:58:29.489|7=1|16=0|10=091|0|12003=9e61a8bc-0a31-4542-ad85-33ebab0e4e86|10=046|
8=FIX.4.2|9=71||35=2|49=XXXX|56=OEC_TEST|34=4|52=20170308-16:58:29.489|7=1|16=0|10=092|0|12003=9e61a8bc-0a31-4542-ad85-33ebab0e4e86|10=046|
8=FIX.4.2|9=71||35=2|49=XXXX|56=OEC_TEST|34=5|52=20170308-16:58:29.489|7=1|16=0|10=093|0|12003=9e61a8bc-0a31-4542-ad85-33ebab0e4e86|10=046|
8=FIX.4.2|9=71||35=2|49=XXXX|56=OEC_TEST|34=6|52=20170308-16:58:29.489|7=1|16=0|10=094|0|12003=9e61a8bc-0a31-4542-ad85-33ebab0e4e86|10=046|

Any idea what's going on?

EDIT: I just realized this is in the wrong forum, sorry about that. I should have posted it to the FIX section.
Edited by CParker2467 on Mar 08, 2017 11:13 AM
CMicciche902
Posts: 348
Joined:


Posted: Mar 08, 2017 @ 11:30 AM             Msg. 2 of 8
I see you are sending 8=FIX.4.2.

We are responding with
10:58:29.540 FIX.4.2:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 <- 8=FIX.4.2 9=85 35=5 34=210 49=OEC_TEST 52=20170308-16:58:29 56=CParker2467 58=Incorrect BeginString 10=069

Our default setup is FIX4.4. I can update your Developer account to 4.2 if you are unable to support 4.4. Please confirm.
Chris M
CParker2467
Posts: 4
Joined: Feb 24, 2017


Posted: Mar 08, 2017 @ 11:33 AM             Msg. 3 of 8
Changing it to 4.4 seems to have fixed the resend issue. Thanks
CParker2467
Posts: 4
Joined: Feb 24, 2017


Posted: Mar 13, 2017 @ 09:24 AM             Msg. 4 of 8
Hi @CMicciche902,

I was mistaken in saying that the connection is now working. What actually happens is that I send my logon request:

8=FIX.4.4|9=123|35=A|49=CParker2467|56=OEC_TEST|34=1|52=20170313-14:15:07.412|98=0|141=Y|108=30|12003=9e61a8bc-0a31-4542-ad85-33ebab0e4e86|10=017

But then nothing happens. I get no response from the server and my program is just sitting in a recv() loop waiting for data from the server.

Any idea what is going on?
CMicciche902
Posts: 348
Joined:


Posted: Mar 15, 2017 @ 04:51 PM             Msg. 5 of 8
You are missing your password - https://gainfutures.com/api/html/6b617d6f-41e5-4df7-b776-f92fb258b190.htm#Password

09:15:07.434 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Created session
09:15:07.434 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Socket Reader 15156712 accepting session FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 from 52.0.xx.xx:59044
09:15:07.435 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Acceptor heartbeat set to 0 seconds
09:15:07.435 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 -> 8=FIX.4.49=12335=A49=CParker246756=OEC_TEST34=152=20170313-14:15:07.41298=0141=Y108=3012003=9e61a8bc-0a31-4542-ad85-33ebab0e4e8610=017
09:15:07.459 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Message 1 Rejected: Required tag missing (Field=554)
09:15:11.570 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Session FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 disconnecting: Socket exception (52.0.xx.xx:59044): An existing connection was forcibly closed by the remote host
09:15:43.031 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Socket Reader 850351 accepting session FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 from 52.0.xx.xx:59045
09:15:43.031 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Acceptor heartbeat set to 0 seconds
09:15:43.032 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 -> 8=FIX.4.49=12335=A49=CParker246756=OEC_TEST34=152=20170313-14:15:43.01798=0141=Y108=3012003=9e61a8bc-0a31-4542-ad85-33ebab0e4e8610=018
09:15:43.032 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Message 1 Rejected: Required tag missing (Field=554)
09:15:48.671 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Session FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 disconnecting: Socket exception (52.0.xx.xx:59045): An existing connection was forcibly closed by the remote host


Chris M

Edited by CMicciche902 on Mar 15, 2017 04:52 PM
CMicciche902
Posts: 348
Joined:


Posted: Mar 15, 2017 @ 04:53 PM             Msg. 6 of 8
09:15:07.459 FIX.4.4:OEC_TEST->CParker2467:9e61a8bc-0a31-4542-ad85-33ebab0e4e86 Message 1 Rejected: Required tag missing (Field=554)
Chris M
CParker2467
Posts: 4
Joined: Feb 24, 2017


Posted: Mar 16, 2017 @ 09:46 AM             Msg. 7 of 8
Thank you Chris, that seems to work. Do you know why that message is not visible to me as a response to the logon request? Seems like it would be very helpful for debugging purposes.
CMicciche902
Posts: 348
Joined:


Posted: Mar 21, 2017 @ 10:04 AM             Msg. 8 of 8
I've suggested a feature improvement to increase transparency to end user. This will be released in a future FIX Order Server release.
Chris M