I have a couple of 24/7 filter processes running (different set of
keywords). They are on different servers, in fact one in the U.S., one
in the U.K.
The one in the U.K. has been fine; the one in the U.S. stopped working
Saturday (2013-04-13 00:00:00 UTC). The error is 401 unauthorized[1].
I logged in as the user, to
twitter.com. No problems. So, here are
things I tried, each with no change:
* Switched from the /1/ to the /1.1/ API (and latest git version of
Phirehose at the same time)
* Recreated the app keys.
* Deleted the app, and created a new one.
* Created a new user, with a new app.
* Waited 10 hrs and tried again.
The thing that *did* work was running it from my notebook. First time,
no problems!
So, it appears the "unauthorized" is referring to the IP address of my
U.S. server, not to my account. Does anyone know anything about this? Is
it a rate-limiting thing and it will start working again? Or do I need
to abandon that server and set up a new one?
Or, my other guess was a DNS thing: maybe the U.S. server gets a
different IP address from DNS than my other servers, and there is
something wrong with one of the Twitter servers.
But this has actually happened a few times before, every 6 months or so.
The only fix each time has been a new user account, but that has always
fixed it. (Incidentally, the UK server has never had this problem, only
the U.S. server.)
I'm at a bit of a loss, so if anyone has any knowledge about what the
401 refers to, please let me know!
Darren
P.S. Both U.S. and U.K. servers are Rackspace cloud servers.
[1]:
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.
--
Darren Cook, Software Researcher/Developer
http://dcook.org/work/ (About me and my work)
http://dcook.org/blogs.html (My blogs and articles)