Plane Github intergration redirect not working

Hello!
I have tried to connect my GitHub account to a plane integration on Plane self-hosted, yet every single time I do, I get redirected from GitHub to plane, I approve the integration on my plane account, and then I get this:

There is nothing in the docs talking about this, I would appreciate some help if possible!

This is the request data, which returned a 400 response:

Did you follow this guide to create the GitHub application? The error you are seeing is usually due to incorrect configuration. The troubleshooting section on the same page shows how to fix it. I’d recommend following the guide first depending on whether you are on GitHub Cloud or self-hosted GitHub Enterprise.

Hey there, I had the same issue.

These steps recommended by support helped me:

  1. Running the following command in the API container
python manage.py reset_marketplace_app_secrets
  1. Disconnect the GitHub integration from Plane and also verify that the app is disconnected from your GitHub org as well, then reconnect it from Plane.

PS: Make sure you’ve opted out of Server Token expiration. Check in Github App Settings > Optional Features