Back

[SOLVED] Git deployment redirects and nothing happens

  • 0
  • General
  • Functions
Cossale
4 Oct, 2023, 17:55

Using self hosted gitpod instance i followed the docs for functions (https://appwrite.io/docs/advanced/self-hosting/functions). but after setting it up and trying to connect to github from appwrite dashboard just redirects me to github app settings

TL;DR
The user was experiencing issues with Git deployment redirects and nothing happening when trying to connect to GitHub from the Appwrite dashboard. They received an error message stating "Failed to obtain access token. The GitHub OAuth2 provider returned an error: Not Found" and noticed an error in the Docker logs for the Appwrite container. They tried uninstalling and reinstalling the GitHub app but it did not resolve the issue. The solution to the problem was to make sure the callback URLs matched the documentation. Additionally, the user needed to switch from "All repositories" to "Only select repositories" and then back to "All repositories" and click save. After
Cossale
4 Oct, 2023, 17:56

Git deployment redirects and nothing happens

Cossale
4 Oct, 2023, 17:57

it gives me option to configure

Cossale
4 Oct, 2023, 17:57

but i have given every perms

Cossale
4 Oct, 2023, 17:58

i tried uninstalling and installing github app again with no success

Drake
5 Oct, 2023, 01:16

Click on configure

Drake
5 Oct, 2023, 01:16

then switch from All repositories to Only select repositories and then back to All repositories. Then, click Save

Drake
5 Oct, 2023, 01:17

You should, then, be redirected back to Appwrite

Cossale
5 Oct, 2023, 12:27

it does but it does not connect to github

Cossale
5 Oct, 2023, 12:27
Cossale
5 Oct, 2023, 12:27

it just redirects back

Drake
5 Oct, 2023, 12:28

Any errors in the docker logs for the appwrite container?

Cossale
5 Oct, 2023, 12:29

appwrite | [Error] Timestamp: 2023-10-05T12:28:55+00:00 appwrite | [Error] Method: GET appwrite | [Error] URL: /v1/account/sessions/oauth2/:provider/redirect appwrite | [Error] Type: Appwrite\Extend\Exception appwrite | [Error] Message: Failed to obtain access token. The GitHub OAuth2 provider returned an error: Not Found appwrite | [Error] File: /usr/src/code/app/controllers/api/account.php appwrite | [Error] Line: 488

Drake
5 Oct, 2023, 13:07

Weird...what's your GitHub app settings?

Cossale
5 Oct, 2023, 13:08
Cossale
5 Oct, 2023, 13:08
Drake
5 Oct, 2023, 13:10

Please make sure the callback URLs match the docs in the same order: https://appwrite.io/docs/advanced/self-hosting/functions#callback

Cossale
5 Oct, 2023, 13:19

absolute wild. how did i missed that???? THANKSSSS

Drake
5 Oct, 2023, 14:53

[SOLVED] Git deployment redirects and nothing happens

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more