forcedotcom / OrgMonitor

BSD 3-Clause "New" or "Revised" License
41 stars 26 forks source link

Hosting on Heroku - app error on adding a sandbox #3

Open AltiusRupert opened 6 years ago

AltiusRupert commented 6 years ago

Hi, I've successfully deployd OrgMonitor to Heroku and configured my connected app. Authorization in the target sandbox is OK : I've verified on the login history of the targeted user.

When try to add a sandbox (or prod org), I get the following app error :

2018-02-22T12:54:47.319822+00:00 heroku[router]: at=info method=GET path="/add/sandbox" host=.herokuapp.com request_id=73cb4398-6e5a-4e6a-9cb9-d384d47fe2b0 fwd="78.230.62.3" dyno=web.1 connect=1ms service=4ms status=302 bytes=1258 protocol=https 2018-02-22T12:54:49.391708+00:00 app[web.1]: (node:4) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.

then timeout

2018-02-22T12:55:18.515714+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/callback?code=" host=.herokuapp.com request_id=c40861a0-e15a-4cf4-ae12-e3ebc4eac629 fwd="78.230.62.3" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=https

Any ideas ?

lekkimworld commented 5 years ago

@AltiusRupert I got that one as well. You need to start the worker dyno as it doesn't start automatically. Using the below CLI command will start it (or you can do it from the web UI): heroku ps:scale worker=1:free