I have developed some code using Python and the Twitter Streaming service. My app connects and requests all geolocated tweets. Until about a week ago, this had been working just fine. This week, it’s now returning an “Unauthorized” error (http response 401). The strange thing is that this is only affecting our “production-ish” server. When I run the same Python code on my desktop, it works just fine. The error text I’m getting on the production server is:\n\n\nError 401 Unauthorized
HTTP ERROR: 401
Problem accessing '/1.1/statuses/filter.json?locations=-180%2C-90%2C180%2C90'. Reason:
Exact same API key, Tokens, and secrets in both places! Any thoughts on what might be causing this? I was thinking it might be that our server IP was blocked, but the Twitter description of being blocked suggests no response from their server, not “Unauthorized”. I’ve re-installed the exact same Python TwitterAPI libraries on both machines – just to be sure the same code is running in both places.