gidgethub / gidgethub

An async GitHub API library for Python

Home Page:https://gidgethub.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guide for installation of a GitHub App

MrBotDeveloper opened this issue · comments

Please help to setup it in aiohttp + GitHub app as, I can't get to understand from the documentation so, please help to me.

When you say "GitHub app", do you mean https://docs.github.com/en/developers/apps or something else?

Yes sir I am talking about that Github App.....

I have a tutorial on building GitHub App using aiohttp and gidgethub here: https://github-app-tutorial.readthedocs.io/en/latest/

I have a tutorial on building GitHub App using aiohttp and gidgethub here: https://github-app-tutorial.readthedocs.io/en/latest/

Yes, that's what I was looking for ... 😅

Thanks a lot for your help 😅

@Mariatta as you have mentioned in the documentation about a Sample Boilerplate Repo in it. I have deployed it but it is not working in a well manner. It is giving an error in logs on GitHub's installation webhook. Error is as follows :

2022-01-07T04:17:40.495722+00:00 heroku[router]: at=info method=POST path="/webhook" host=*****.herokuapp.com request_id=95b78a67-4304-4d9e-9a18 fwd="140.**.***.**" dyno=web.1 connect=0ms service=2ms status=500 bytes=187 protocol=https
2022-01-07T04:17:40.497937+00:00 app[web.1]: Traceback (most recent call last):
2022-01-07T04:17:40.497963+00:00 app[web.1]: File "/app/webservice/__main__.py", line 31, in webhook
2022-01-07T04:17:40.497963+00:00 app[web.1]: event = sansio.Event.from_http(request.headers, body, secret=secret)
2022-01-07T04:17:40.497977+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gidgethub/sansio.py", line 120, in from_http
2022-01-07T04:17:40.497978+00:00 app[web.1]: validate_event(body, signature=headers["x-hub-signature"], secret=secret)
2022-01-07T04:17:40.498010+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gidgethub/sansio.py", line 81, in validate_event
2022-01-07T04:17:40.498010+00:00 app[web.1]: raise ValidationFailure("payload's signature does not align " "with the secret")
2022-01-07T04:17:40.498039+00:00 app[web.1]: gidgethub.ValidationFailure: payload's signature does not align with the secret

I have filled all vars correctly. And also tried reset the App's Secret twice but none help me....

Please guide me if I am wrong in anyplace.