I fixed this in my implementation about a week ago, have a look:

Basically, JSON might be split across multiple chunks.  You can assemble it
back with a PipedReader/Writer and then use cheshire's lazy seq.

https://github.com/gtrak/dashboard/blob/master/src/gtrak/dashboard/twitter.clj#L94


On Thu, May 1, 2014 at 6:59 PM, Simon Katz <nomisk...@gmail.com> wrote:

> Hi,
>
> I'm playing with twitter-api (https://github.com/adamwynne/twitter-api)
> and streaming calls. I've also tried twitter-streaming-client (
> https://github.com/mccraigmccraig/twitter-streaming-client).
>
> With the examples each of those provide, I'm getting *EOFException: JSON
> error (end-of-file)* errors.
>
> I can of course post more details, but I'm hoping someone else might have
> come across this and be able to give me a pointer as to what's happening.
>
> I wonder if perhaps something's changed in the Twitter API recently to
> break things.
>
> __
> Simon
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to