Missing Value - Jayrock + IE9

Skip to first unread message

Everton Macedo

Jan 22, 2014, 3:43:11 AM1/22/14
to jay...@googlegroups.com
Hi All.

Maybe you could help me on this one. I get sporadic "Missing Values" - JsonException in the client frontend (only in IE9).

It is hard to identify which Layer could cause the problem. Is the browser breaking the request? the server? Maybe you've already seen this bug before.

For Example:
{"id":null,"error":{"name":"JsonException","message":"Missing value.","stackTrace":" at Jayrock.Json.JsonTextReader.Parse()\r\n at Jayrock.Json.JsonReaderBase.Read()\r\n at Jayrock.Json.JsonReader.MoveToContent()\r\n at Jayrock.Json.JsonReader.ReadToken(JsonTokenClass token)\r\n at Jayrock.JsonRpc.JsonRpcDispatcher.ParseRequest(JsonReader input)","errors":[{"name":"JsonException","message":"Missing value."}]}}

Request Body:
Response Body:
{"id":null,"error":{"name":"JsonException","message":"Missing value.","errors":[{"name":"JsonException","message":"Missing value."}]}}

Thank you in advance for any tipps.



Atif Aziz

Jan 22, 2014, 9:28:55 AM1/22/14
to jay...@googlegroups.com
If it is sporadic, my hunch is that one of the layers is consuming or eating up the stream. When it gets to Jayrock, the stream is at its end and it throws the “Missing value.” error. You can try this to get the same error:

JsonConvert.Import(new StreamReader(Stream.Null));

Hope that sheds some light.

- Atif

You received this message because you are subscribed to the Google Groups "Jayrock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jayrock+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Everton Macedo

Jan 28, 2014, 12:11:13 PM1/28/14
to jay...@googlegroups.com
Just FYI,
The client had a Cisco Firewall, which managed to break and cut the request body. (some creepy settings). The whole request body was missing in the inbounding request server side.
Adding the domain to the Whitelist of the Cisco Firewall seems to avoid the missing data behaviour.

So, the problem wasn't related to jayrock at all.

Thank you anyway.


Atif Aziz

Jan 28, 2014, 1:14:37 PM1/28/14
to jay...@googlegroups.com
Thanks for taking a moment to drop in with your discoveries. Glad to hear it wasn't Jayrock after all. Now we can all return to the regularly scheduled program. :)

- Atif
Reply all
Reply to author
0 new messages