Comments (8)
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.
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.
Also on Heroku and doing a restart does not fix this problem. How did you change the IP?
from passport-facebook.
I have the same error....
from passport-facebook.
+1 for this error with Facebook + Heroku
from passport-facebook.
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.
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.
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)
- Does passport-facebook work with https://github.com/facebook/react-native-fbsdk to retrieve refresh token?
- Logout_issue
- what if the user has multiple accounts on facebook and wanna switch to another account
- Hello HOT 1
- The re authenticate not working HOT 6
- i am getting an error of status code 500 from facebook
- Session Expired when using Passportjs Facebook from Facebook App in IOS HOT 1
- Hello
- Passport Facebook not redirecting correctly (Error Code 500) HOT 2
- instagram_basic permission getting ignored
- Warning Can't Load URL: HOT 2
- I am facing such issue anyone help me
- Facebook has detected that Secret isn't using a secure connection to transfer information. HOT 1
- facebook login error : Sorry, something went wrong. We're working on getting this fixed as soon as we can. HOT 1
- FacebookToken Error via localhost HOT 2
- E11000 duplicate key error collection HOT 2
- Facebook allow Email scope not working, It's not return "email" ? HOT 4
- Lastest Facebook Version HOT 1
- Question about FB documentation... needs an update?
- https://www.facebook.com/login/Traci Cener
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passport-facebook.