bradshjg / flask-githubapp

Flask extension for rapid Github app development in Python, in the spirit of probot (https://probot.github.io/)
MIT License
56 stars 14 forks source link

400 Bad Request #10

Closed AivanK closed 4 years ago

AivanK commented 4 years ago

I've got this error in ngrok when i install the app in Github. eg https://imgur.com/a/Wnv8PXg What can be the reason for this to be happening?

bradshjg commented 4 years ago

Were you able to get this working. What do your server logs show?

AivanK commented 4 years ago

Sorry for answering only know... No @bradshjg, i couldn't, it says error with main now, will check the environment variables. From what I've seen that's the only possible problem.

bradshjg commented 4 years ago

If you're still running into issues then pasting the traceback will potentially be helpful (or ideally providing a reproducible case).

dato commented 4 years ago

I had to enable logging:

logging.getLogger("flask_githubapp").addHandler(logging.StreamHandler())

Then I saw it was:

GitHub hook signature verification failed.
AivanK commented 4 years ago

I had to enable logging:

logging.getLogger("flask_githubapp").addHandler(logging.StreamHandler())

Then I saw it was:

GitHub hook signature verification failed.

It actually worked...well i mean, i know the error.

It's the same as yours, did you manage to solve it?

dato commented 4 years ago

Yes. It was a problem with my webhook secret.

AivanK commented 4 years ago

May i know was the solution that you used?

dato commented 4 years ago

I don't really remember what my problem was. But you must set a secret.

AivanK commented 4 years ago

You mean the Webhook secret? Thanks for your help.

dato commented 4 years ago

Yes. (Sorry, I won’t reply anymore. Good luck.)