Phirehose User stream needs updating

83 views
Skip to first unread message

Ralph Slate

unread,
May 5, 2016, 6:45:28 PM5/5/16
to Phirehose Users
I encountered an error starting yesterday with Phirehose. Error was 

Phirehose: HTTP failure 1 of 20 connecting to stream: HTTP ERROR 404: Not Found (Unknown URL. See Twitter Streaming API documentation at http://dev.twitter.com/pages/streaming_api). Sleeping for 10 seconds.

I did some digging and found that Twitter deprecated their old streaming URLs. Here is the post:


The Phirehose script was using the older version of the URL, not the newer version.

To fix this, I changed this line of code:

case self::METHOD_USER:$this->URL_BASE = 'https://userstream.twitter.com/2/';break;

to this:

case self::METHOD_USER:$this->URL_BASE = 'https://userstream.twitter.com/1.1/';break;

Although it is the reverse of what you would expect, the "2" is the older, defunct version of the API, the "1.1" is the new version. 

Fenn Bailey

unread,
May 9, 2016, 12:28:37 AM5/9/16
to phireho...@googlegroups.com
This has now been patched/merged in thanks to our awesome users: https://github.com/fennb/phirehose/pull/102

--

---
You received this message because you are subscribed to the Google Groups "Phirehose Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phirehose-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages