Skip to content
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

Closed
elbalu opened this issue Apr 18, 2013 · 8 comments
Closed

FB connect Unauthorized source IP address #36

elbalu opened this issue Apr 18, 2013 · 8 comments

Comments

@elbalu
Copy link

elbalu commented Apr 18, 2013

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}})

@m0rg0t
Copy link

m0rg0t commented Apr 25, 2013

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)

@m0rg0t
Copy link

m0rg0t commented Apr 25, 2013

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.

@jeffblake
Copy link

Also on Heroku and doing a restart does not fix this problem. How did you change the IP?

@martinezcoder
Copy link

I have the same error....

@GGTLS
Copy link

GGTLS commented Apr 30, 2013

+1 for this error with Facebook + Heroku

@martinezcoder
Copy link

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.

@jaredhanson
Copy link
Owner

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.

@divyanshu013
Copy link

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.

@ghost ghost deleted a comment Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants