[Spot Websocket API ] Cannot subscribe to userDataStream. After session.logon

Can you tell me what could be the problem when trying to connect Binance userDataStream.subscribe after opening a connection using session.logon? The connection is established, the session.status request is also sent normally, but as soon as you send userDataStream.subscribe 400 status code and gives the following text: {code: -1193, msg: ‘WebSocket session not authenticated. Recommendation: use “session.logon”.’}

and the most interesting thing is that deprecated method: userDataStream.start connects everything is ok

Hi @Sergii,

Could you please share your code on how you do the logon and subscribe requests? Most probably something is not configured properly on your connection.

I’ve already found the problem and fixed it. Thanks