You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a similar problem as https://github.com/socketio/socket.io-client-cpp/issues/287 says when receiving the binary message from my server. It fails to parse binary payload, and raises an error terminating with uncaught exception of type std::invalid_argument: stoi: no conversion.
I'm currently having the same problem in the latest version of the lib. Sending a binary message from C++ to a NodeJS works fine, but when receiving it (even without handlers), it crashes on std::stoi (from what I can tell, it passes an empty string).
I'm currently having the same problem in the latest version of the lib. Sending a binary message from C++ to a NodeJS works fine, but when receiving it (even without handlers), it crashes on std::stoi (from what I can tell, it passes an empty string).
I'm currently having the same problem in the latest version of the lib. Sending a binary message from C++ to a NodeJS works fine, but when receiving it (even without handlers), it crashes on std::stoi (from what I can tell, it passes an empty string).
have you found a fix, i have the same error
I think I just implemented the fix proposed by OP... Not sure if I've done anything else.
Activity
ferdinandmsu commentedon Jul 25, 2021
I have the same issue
linsinan1995 commentedon Jul 26, 2021
I have stopped using cppclient for a while, but it seems my fix works fine for my cases. Maybe you can have a try?
ferdinandmsu commentedon Jul 28, 2021
yes your patch works fine for me 👍
Added changes to read binary data from socketio [Issue#299]
patch binary receive support
Darkratos commentedon Dec 26, 2023
I'm currently having the same problem in the latest version of the lib. Sending a binary message from C++ to a NodeJS works fine, but when receiving it (even without handlers), it crashes on std::stoi (from what I can tell, it passes an empty string).
LowBoBYT commentedon Mar 24, 2024
have you found a fix, i have the same error
Darkratos commentedon Mar 24, 2024
I think I just implemented the fix proposed by OP... Not sure if I've done anything else.