line21c / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

JsonReader stops parsing the document in midpoint when using WebDiscoveryDevice #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Apparently the JsonReader cannot fully parse a document when using the 
WebDiscoveryDevice under windows. The TokenStream from Netwon.
Json.Net35.dll will start returning only null-tokens at some point, and the 
resulting document/dictionary gets corrupted.

The issue does not occur when preloading the full document/using the 
StringDiscoveryDevice.

It may be caused by a timeout or something similar (especially since it is not 
happening under mono), but no Exception is thrown. Have to investigate!

Tested with discovery V1

Original issue reported on code.google.com by mlin...@google.com on 19 May 2011 at 7:58

GoogleCodeExporter commented 9 years ago
To correct my self: TokenStream is actually in the Google API and the 
Newton.Json dll seems to be unused.

I guess the .Peek() method used within this stream fails when the download is 
slower than the parsing itself. 

Original comment by mlin...@google.com on 19 May 2011 at 8:04

GoogleCodeExporter commented 9 years ago
Fix applied & merged with default branch. 

Original comment by mlin...@google.com on 21 May 2011 at 12:18