Failed to retrieve access token from GitHub API - self-hosting - ngrok - localhost
- 0
- Self Hosted
- Functions
- Auth

Hi,
I have problem to connect to github repository. I make configuration based on docs: https://appwrite.io/docs/advanced/self-hosting/functions I tested it on 1.6.0, and 1.6.1-RC1 and i still have the same error:
Error in logs:
Message: Failed to retrieve access token from GitHub API.
My configuration:
_APP_DOMAIN=feasible-hookworm-adapting.ngrok-free.app
_APP_DOMAIN_FUNCTIONS=functions.feasible-hookworm-adapting.ngrok-free.app
_APP_DOMAIN_TARGET=feasible-hookworm-adapting.ngrok-free.app
_APP_VCS_GITHUB_APP_NAME=app-write-local
_APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nMIIE[...]3iwA==\n-----END RSA PRIVATE KEY-----"
_APP_VCS_GITHUB_APP_ID=1105293
_APP_VCS_GITHUB_CLIENT_ID=Iv23lioIKnUDBoqxWXhy
_APP_VCS_GITHUB_CLIENT_SECRET=e31eea9bdd1914f867638303aea20091478690b1
_APP_VCS_GITHUB_WEBHOOK_SECRET=tomasztoja
Appwrite is running on docker, and the instance is available public by Ngrok:
https://feasible-hookworm-adapting.ngrok-free.app -> http://localhost:8091
GitHub App configuration:
order of callback url:
https://feasible-hookworm-adapting.ngrok-free.app/v1/vcs/github/callback https://feasible-hookworm-adapting.ngrok-free.app/v1/account/sessions/oauth2/callback/github/console
[Selected] Request user authorization (OAuth) during installation
Webhook URL: https://feasible-hookworm-adapting.ngrok-free.app/v1/vcs/github/events
Permission is granted.
please give me some tips to fix it 🙂
Recommended threads
- custom requirements.txt file
How do I specify a custom requirements.txt file when creating a serverless function through the Appwrite console?
- CSV Import not working
I am running 1.7.4, trying the sample book csv import. I get a pop up saying import started and then a quick follow up saying completed. Nothing ever appears ...
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
