My streaming Twitter application stopped working, and in the logs I see:
Phirehose: Connecting to twitter stream: https://stream.twitter.com/1.1/statuses/filter.json with params: array ... Phirehose: Authorization: OAuth realm=... Phirehose: HTTP failure 1 of 20 connecting to stream: HTTP ERROR 401: Unauthorized (<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Error 401 Unauthorized</title></head><body><h2>HTTP ERROR: 401</h2><p>Problem accessing '/1.1/statuses/filter.json'. Reason:<pre> Unauthorized</pre>). Sleeping for 10 seconds.
I generated my consumer key/secret and access token/secret on June 13, and haven’t changed them since. My hosting did have to reboot my server over the weekend, so I had to restart my app. This is when I noticed the “Unauthorized” message. Nothing in my code change has changed.
Do I need to recreate my access token? Do these tokens expire?
In case it helps, I’m using the Phirehose library at: