I have a very weird issue I can’t seem to pinpoint no matter what I do.
We have an application that has been working fine for the last few months, but it stopped working over the last few days.
When the application tries to open a stream from the Streaming API to the ‘statuses/filter’ end point, the response returns an error with a 401 (unauthorized) status code.
This happens on both hosted environments we’re testing on- Microsoft Azure and Nodejitsu.
One weird part is that using the exact same code on a local machine and running it through “localhost” works with no issues what-so-ever. Tweets are being streamed, and everything’s peachy.
Another weird part is that there were at least two short periods of time in which the the application running on hosted environments managed to connect successfully to the end point and stream the tweets as requested. This seems to be on and off.
I’m frustrated by this for the last three days with no clue on how to fix it.
Any ideas? anyone else experiencing the same?