Giter Site home page Giter Site logo

Comments (8)

m0rg0t avatar m0rg0t commented on August 25, 2024 3

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.

from passport-facebook.

m0rg0t avatar m0rg0t commented on August 25, 2024

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)

from passport-facebook.

jeffblake avatar jeffblake commented on August 25, 2024

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

from passport-facebook.

martinezcoder avatar martinezcoder commented on August 25, 2024

I have the same error....

from passport-facebook.

GGTLS avatar GGTLS commented on August 25, 2024

+1 for this error with Facebook + Heroku

from passport-facebook.

martinezcoder avatar martinezcoder commented on August 25, 2024

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.

from passport-facebook.

jaredhanson avatar jaredhanson commented on August 25, 2024

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.

from passport-facebook.

divyanshu013 avatar divyanshu013 commented on August 25, 2024

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.

from passport-facebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.