twerl icon indicating copy to clipboard operation
twerl copied to clipboard

Incomplete json returned from twitter

Open llaisdy opened this issue 10 years ago • 0 comments

Dear All

Thanks for updating this for OAuth!

Quite often the data returned from twitter is not a complete json object. This breaks twerl_util:decode/1.

The content returned from twitter is a stream of json objects separated by "\r\n". These separators do not always coincide with the chunks.

Have you noticed this? I haven't found anything addressing it in any of the forks. Please let me know.

In the meantime I've hacked something together that works.

Best wishes

Ivan

llaisdy avatar Feb 16 '15 13:02 llaisdy