Bug Fix: pyrollbar: No access_token provided.
Credentials and authentication issues preventing the rollbar agent in our backend from calling home.
Last updated
Credentials and authentication issues preventing the rollbar agent in our backend from calling home.
Last updated
Although the rollbar access_token
is configured with the python variable rollbar_access_token
, the agent isn't calling home, and no data are coming through on the Rollbar side.
Something must be wrong with the variable rollbar_access_token
in line 94 (in the above image).
After good dozens of minutes, I finally figured out: there are multiple access_tokens
at varying levels in Rollbar - one at the project level (for each project) and the other at the account level.
I was using the account level token where I have to input the project access token.
However, I still get the same error that the access_token
is not provided. Well... the error message was quite stragithforward in fact. It's been telling me to "call" the rollbar.init()
function.
Reorganise the Rollbar code.
Call init_rollbar()
under with app.app_context():
function (code fix here).
The error message pyrollbar: No access_token provided
is gone.
I check the Rollbar console and the spans are coming through.