Code-Sharp / WampSharp

A C# implementation of WAMP (The Web Application Messaging Protocol)
http://wampsharp.net
Other
385 stars 84 forks source link

JTokenMessageParser.Parse: Failed parsing message #206

Closed drweeto closed 7 years ago

drweeto commented 7 years ago

The following error was logged upon attempting to open up a connection to Bitfinex's websocket service:

2017-08-04 10:30:18,195 [16] ERROR [LoggerExecutionWrapper.Log(0)] - Failed parsing message {"event":"info","version":2} System.ArgumentNullException: Value cannot be null. Parameter name: source at System.Linq.Enumerable.Skip[TSource](IEnumerable`1 source, Int32 count) at WampSharp.Newtonsoft.JsonWampMessageFormatter.Parse(JToken message) at WampSharp.Newtonsoft.JTokenMessageParser.Parse(String text)

I upgraded to 1.2.5.40-beta version of WampSharp and 10.0.3 of Newtonsoft.Json to see if it made a difference, without luck,

Let me know if there is any more information I can provide.

darkl commented 7 years ago

The message isn't a proper WAMP message. It isn't even an array. WampSharp is a library for the WAMP protocol, not for an arbitrary WebSocket subprotocol.

Elad

drweeto commented 7 years ago

Thank you very much for clearing that up for me.