"Unable to retrieve request token" error

I’m trying to log in with Twitter, and I’m getting redirected to the wrong URL (the server’s IP address, which I had previously configured as the ROOT_URL, instead of its domain) which seems to be triggering this error when trying to log in from the app’s domain:

[45.55.8.226] {"line":"398","file":"oauth_server.js","message":"Error in OAuth Server: Unable to retrieve request token","time":{"$date":1437035966795},"level":"warn"}[45.55.8.226]
[45.55.8.226] Exception while invoking method 'login' Error: Unable to retrieve request token
    at OAuth._requestHandlers.(anonymous function) (packages/oauth1/oauth1_server.js:61:1)
    at middleware (packages/oauth/oauth_server.js:173:1)
[45.55.8.226]     at packages/oauth/oauth_server.js:146:1[45.55.8.226]

If I try to log in from the app’s IP address it works fine though. The weird part is that I’ve already changed ROOT_URL in Mup, and what’s more Meteor.absoluteUrl() does return the right URL (the domain).

Any help would be much appreciated!

I had the same problem last few days. The server running my app had not access to the internet and when I tried to log with google oauth, I got the error.

After enabling internet on the app server, oauth works fine.