-
-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FB connect Unauthorized source IP address #36
Comments
Get same error failed to fetch user profile (status: 400 data: {"error":{"message":"(#5) Unauthorized source IP address","type":"OAuthException","code":5}})
at /app/node_modules/passport-facebook/lib/passport-facebook/strategy.js:110:28
at passBackControl (/app/node_modules/passport-facebook/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:105:9)
at IncomingMessage.<anonymous> (/app/node_modules/passport-facebook/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:124:7)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:895:16
at process._tickCallback (node.js:415:13) |
Find solution for my case - application was on heroku and use one of ip's in ban lsit, so after heroku restart and changing IP all is ok. |
Also on Heroku and doing a restart does not fix this problem. How did you change the IP? |
I have the same error.... |
+1 for this error with Facebook + Heroku |
In my case, the problem was my database DNS on Heroku. When I tried to "heroku run console" I had this error: could not translate host name "xx-xx-xx-xx-xx.compute-1.amazonaws.com" to address: Temporary failure in name resolution. Therefore, the error "Unauthorized source IP address", have some sense in my context... and it is an Heroku error. I opened a ticket on heroku and the problem was solved very fast. |
If an IP is on Facebook's banned list, there's nothing this module can do except report the error. You'll have to change your IP or contact Facebook to get it removed. Closing. |
If anyone has this issue with heroku, then the best way to resolve would be to restart all your dynos. You should be allocated a new ip address and the problem should get resolved. |
Hi,
I am getting the below error. FB connect in local is working fine but in server the error occurs.
500 failed to fetch user profile (status: 400 data: {"error":{"message":"(#5) Unauthorized source IP address","type":"OAuthException","code":5}})
The text was updated successfully, but these errors were encountered: