Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX message contains bad character, how can we skip it #683

Closed
DHirani opened this issue Mar 2, 2021 · 3 comments
Closed

FIX message contains bad character, how can we skip it #683

DHirani opened this issue Mar 2, 2021 · 3 comments

Comments

@DHirani
Copy link

DHirani commented Mar 2, 2021

We have certain brokers sending us a FIX message where the tag 58 value contains invalid characters that causes the FIX engine to stop with "Invalid message: Expected ..."

Session FIX.4.4:TEST->CLIENT disconnecting: QuickFix.InvalidMessage: Invalid message: Expected BodyLength=797, Received BodyLength=795
at QuickFix.Session.Next(MessageBuilder msgBuilder)
at QuickFix.SocketInitiatorThread.ProcessStream()
at QuickFix.SocketInitiatorThread.Read()

Workaround

  1. Stop FIX engine and jump the sequence number by one.

Is it possible to extend QuickFixN so it delivers the payload as bad message then jumps to the next message?

@stbrd
Copy link

stbrd commented Aug 11, 2021

Running into the same exact issue but with a different tag (65). Would like to reject the invalid message and move on to the next, but QuickFixN stops and cannot move to subsequent messages without manual intervention.

@machonky
Copy link

machonky commented Oct 8, 2021

Ouch! I got the same error when an extended character was passed through on Tag 58.

QuickFix.InvalidMessage: Invalid message: Expected BodyLength=392, Received BodyLength=388
at QuickFix.Session.Next(MessageBuilder msgBuilder)
at QuickFix.SocketInitiatorThread.ProcessStream()
at QuickFix.SocketInitiatorThread.Read()

The partial text in question contained a Finish word: "päivä". Something is going wrong in the serialization of extended characters.

Upstream, the text/data is just passed through. I wouldn't deem this text invalid.

Looks like this issue is solved with an update: http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/2021q3/001371.html

@gbirchmeier
Copy link
Member

Yes, if you are not using QF/n 1.10, please upgrade and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants