olinlibrary / loanbot

A chatbot that keeps track of Olin's tool and non-book library loan system
MIT License
0 stars 0 forks source link

Intermittent oauth error trying to send message to FB #10

Open osteele opened 7 years ago

osteele commented 7 years ago

Issue by osteele Friday Apr 21, 2017 at 19:10 GMT Originally opened as https://github.com/aloverso/loanbot/issues/18


Today 2017-04-21 a message failed to receive a response, and elicited this in the heroku log:

2017-04-21T18:48:24.794289+00:00 heroku[router]: at=info method=POST path="/webhook" host=olinloanbot.herokuapp.com request_id=ed5c1373-4a26-4eee-9645-c737083be2ed fwd="173.252.120.117" dyno=web.1 connect=2ms service=271ms status=200 bytes=155 protocol=https
2017-04-21T18:48:24.793820+00:00 app[web.1]: 400 {"error":{"message":"(#5) Unauthorized source IP address","type":"OAuthException","code":5,"fbtrace_id":"AIg7bhV+Iio"}}

The web says this is a Heroku/FB issue.

The workaround is to run heroku ps:restart when you run into the issue.

The longer-term fix is install https://elements.heroku.com/addons/proximo.

The documentation for this app should include the workaround, and the fix should be to install Proximo (or find another solution).