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
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...
- sh: vite: Permission denied
When installing the vue starter template as site and then adding DaisyUI, i get the error `sh: vite: Permission denied`. I also got this issue (with a fresh tem...
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.