Generating invalid JWT tokens when calling Github API
I'm running my own copy of this bot because the "public" hosted one appears to not be working.
I've created a new Github App for it, following the procedure at https://github.com/probot/probot/blob/master/docs/deployment.md, and set the following environment variables: APP_ID PRIVATE_KEY_PATH WEBHOOK_SECRET
Once an hour, the app tries to call https://api.github.com/app/installations?per_page=100 and gets back {"message":"A JSON web token could not be decoded","documentation_url":"https://developer.github.com/v3"}
The private key file appears to be loaded successfully because I do not see file loading errors upon startup. However, Github's Ruby script which generates a JWT header for this app works, but the app's does not. In other words, using the same private key and app ID, a JWT generated by Github's Ruby script produces a valid JWT which can be used to Curl the installations API, but not the node.js bot code.
I've set DEBUG=* but do not see any other helpful log messages. I have regenerated another private key with the same results. From my Node server, I've calculated the thumbprint of the certificate and it matches what is shown in Github's app settings page, implying the key is valid.
Has anyone here successfully ran a copy of their own probot-settings?
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?