-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On failure to connect to GitHub, a MISSING_CONFIG_BLOCK error is thrown #328
Comments
Hi, I'm receiving this error and I don't know if it's related to this bug (wrong token) or whether the configuration file is wrong. I'm using the What can I check to understand where is the problem? My logs in Heroku when I start the app and try to do a post request are the following:
|
In Heroku, I set the GitHub and RSA tokens via Heroku config variables, not via the config file (I use no config file at all). I don't know if that's the problem though because in principle the config file should work too. There is some logging I think which indicates how the config was read. I've fixed the error handling in my branch: you'll still get an error but it should tell you what actually went wrong. |
Ok I'm sorry that was my bad: by setting the token in the configuration file GitHub was recognizing it and automatically invalidating it. Setting it in a Heroku variable solved the issue. |
Let's say your github token is revoked or otherwise wrong. You should get a
GITHUB_READING_FILE
error or similar. In fact, due to incorrect error handling, you fall into the parsing validation code, which sees anull
config block because the object isn't the file contents at all but an error object, and this gets transmuted toMISSING_CONFIG_BLOCK
error w/o any useful details.The text was updated successfully, but these errors were encountered: