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
- type 'Null' is not a subtype of type 'bo...
Flutter Appwrite Package is throwing this error when trying to get currently logged-in user. I'm using `Appwrite v1.6.0` self hosted and Flutter's `Appwrite S...
- Issue with OAuth Callback Parameters in ...
I'm using the createOAuth2Token() function and I have the following questions: First, I would like to know if the redirect link is correct. Second, when I try ...
- Server Error 500 when trying to update a...
I have a collection which has been working fine. I have created a new relationship attribute on it. When I try to add a record for this relationshhip to my ot...