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!