When trying to connect the Github App on 1.8.1 I recieve this error:
[Error] URL: /v1/vcs/github/callback
[Error] Type: Exception
[Error] Message: Failed to retrieve access token from GitHub API.
[Error] File: /usr/src/code/vendor/utopia-php/vcs/src/VCS/Adapter/Git/GitHub.php
[Error] Line: 398```
ENV should all be set according to docs, Github app as well. Anyone an idea?
The Callback URL:
GET https://backend.dashly.at/v1/vcs/github/callback?code=8523009ca9352c8911d1&installation_id=103919286&setup_action=update&state=%7B%22projectId%22%3A%2269655ecb000d5ab27c14%22%2C%22success%22%3A%22https%3A%5C%2F%5C%2Fbackend.dashly.at%5C%2Fconsole%5C%2Fproject-default-69655ecb000d5ab27c14%5C%2Fsettings%3Falert%3Dinstallation-updated%22%2C%22failure%22%3A%22https%3A%5C%2F%5C%2Fbackend.dashly.at%5C%2Fconsole%5C%2Fproject-default-69655ecb000d5ab27c14%5C%2Fsettings%3Falert%3Dinstallation-updated%22%7D 500 (Internal Server Error)
I can help 🙂 This usually happens because Appwrite can’t exchange the GitHub callback code for an access token. The most common cause is an issue with the GitHub App credentials, especially the private key not being set correctly (wrong key, missing line breaks, or not matching the app). It can also happen if the callback URL or app credentials don’t exactly match what GitHub expects. How are you setting the GitHub App private key in your environment (raw PEM, escaped string, or mounted file)? @Flyto
Recommended threads
- OAuth provider credentials reverting [CR...
Hi team, I’m experiencing repeated OAuth configuration resets in my Appwrite project. ## Issue 1 – Google OAuth credentials reverting * I configure my own Goog...
- Hey everyone! I'm trying to self-host th...
Hey everyone! I'm trying to self-host the latest Appwrite version (1.8.1) on Coolify. Which docker-compose.yml file should I use from their repo? Can someone he...
- Weird CLI error
I'm a little lost ``` appwrite init project --organization-id my_actual_organiztion_id --project-name "test" --project-id "unique_id" ℹ Info: For detailed erro...