I'm getting error on heroku although I provided required env vars
Closed this issue · 3 comments
KonradLinkowski commented
2020-11-11T13:07:40.206127+00:00 app[clock.1]: 2020-11-11 13:07:40,205 - root - INFO - Logging into stackoverflow.com
2020-11-11T13:07:40.206291+00:00 app[clock.1]: 2020-11-11 13:07:40,206 - root - ERROR - Set 'STACK_OVERFLOW_EMAIL' 'STACK_OVERFLOW_PASSWORD' 'STACK_OVERFLOW_DISPLAY_NAME' env variables to successfully log into Stack Overflow
2020-11-11T13:07:40.206493+00:00 app[clock.1]: 2020-11-11 13:07:40,206 - apscheduler.executors.default - INFO - Job "access_stack_overflow_page (trigger: interval[3:00:00], next run at: 2020-11-11 16:07:40 UTC)" executed successfully
alexsomai commented
Could you please confirm that this is the way you set the env vars in Heroku (they named them Config Vars)?
- using the CLI: https://devcenter.heroku.com/articles/config-vars#using-the-heroku-cli
- or using the Dashboard https://devcenter.heroku.com/articles/config-vars#using-the-heroku-dashboard
Also, note that the keys have to be exactly as they are defined in the log message.
Meanwhile I'll try to reproduce the issue myself.
KonradLinkowski commented
@alexsomai I used the heroku dashboard
alexsomai commented
I've tried to reproduce the issue and I didn't manage to; it's working just fine for me.
Try to Restart all dynos
and see if it works afterwards.
I don't think it's an issue with this repo. I assume that the Config Vars don't get set in your Heroku app, for some reason. Therefore I'm looking forward to closing this issue.