tesaguri / twitter-stream-message

Types and `serde::Deserialize` implementations for Twitter's Streaming API objects.
MIT License
1 stars 1 forks source link

Twitter stream sometimes fails to parse json string: #1

Open iddm opened 7 years ago

iddm commented 7 years ago

I often see serde failures like this:

ErrorImpl { code: Message("invalid type: unit value, expected a string"), line: 1, column: 8622 }

Example of the error and what even it happened on is in the attachment: bug.txt

I think the problem is in geo field but I am not sure.

tesaguri commented 7 years ago

Hmm..., interesting. The profile_background_color field in the event's source seems to be null, which is supposed to be non-nullable according to Twitter Developers' documentation. But it actually happened to be null, so I'll investigate the problem anyway.

This might be a complex problem to resolve, perhaps needing some API refinement.

iddm commented 7 years ago

@dmizuk thanks for this. I have also posted issue in serde because I had to spend a lot of time to find out what field causes this but I had no success even so.

iddm commented 7 years ago

Sorry for disturbing you, @dmizuk, but have you got any news concerning this?