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
- Error connecting Github
I have followed the documentation online for setting up VCS and cannot get my Github to properly connect in Functions. When I press the "Connect to Github" I am...
- Invalid origin error in authentication
I have setup the package name same as the package name in app.json but it is constantly saying `AppwriteException: Invalid Origin. Register your new client as ...
- delete cancelled site deployment
I would like to remove a cancelled site deployment, but the site menu shows only "Redeploy".