Closed onthespotqa closed 2 years ago
Hey @onthespotqa, trying to make sure I understand what's going on here. Are you self-hosting Bors on Heroku using the 1-click deploy option? Are there any logs from Bors that you can provide here that might have some more context? I ran into a similar problem here: #1212 where Github returned a 401 upon user login. The problem turned out to be a random newline at the end of a secret. I'd verify your secrets don't contain any newlines or special characters that could potentially be causing issues.
@RetWolf there does not appear to be any newlines in my secrets. the only thing maybe was i uploaded the pem key incorrectly openssl base64 -A -e < private-key.pem
i copied everything up to the % a the end.
The logs do not give anything useful just
May 06 08:55:07 onthespot-bors-ng heroku/router at=info method=POST path="/webhook/github" host=onthespot-bors-ng.herokuapp.com request_id=8a8b8d60-ca45-47e9-8f03-20665123ca26 fwd="140.82.115.145" dyno=web.1 connect=1ms service=3ms status=401 bytes=328 protocol=https
May 06 08:55:07 onthespot-bors-ng app/web.1 15:55:07.079 request_id=8a8b8d60-ca45-47e9-8f03-20665123ca26 pid=<0.554.0> [info] POST /webhook/github
May 06 08:55:07 onthespot-bors-ng app/web.1 15:55:07.080 request_id=8a8b8d60-ca45-47e9-8f03-20665123ca26 pid=<0.554.0> [info] Sent 401 in 1ms
@RetWolf I also self hosted on Heroku and used the 1 click deploy.
Also facing the same thing, with a fresh Heroku install. Anything you did to fix this?
Also facing the same thing, with a fresh Heroku install. Anything you did to fix this?
@Djiit never got it to work.
Folks, I just had to re deploy my heroku instance with a correct secret. I'll advise to try to redeploy when all your env vars are OK
Can you please let me know the reason for 401??? My credentials are correct. I am using HMAC, SHA-256, and Base64 for Encoding, secret and X-Hub-Signature-256 in my server side
But I receive 401 response. I used github webhook. Push event trigger
I setup an instance of the github webhook under my account for prototyping. The webhook itself was installed on heroku using the 1-click deploy.
I've confirmed that the github_webook_secret is the same in both my install app and the heroku instance. And then tried installing it on a single repo, and the webhook request still returns a 401.
Is there something i'm missing? The only other thing i can think of was i didn't encode the pem correctly when i uploaded it to heroku.
Below are the Headers/Payload