Back

[Solved] GH Functions callback error 500

  • 0
  • Self Hosted
  • Functions
fafa
16 Nov, 2023, 18:27

and if it fully works and i need it, it goes to a production server

TL;DR
[Solution] The issue was resolved by correcting the incorrect app ID. It was suggested to check the `_APP_VCS_GITHUB_CLIENT_ID` and `_APP_VCS_GITHUB_CLIENT_SECRET` values as well. The error persisted despite making these changes. It was then discovered that the callback URLs in the Github app may have been incorrect or missing. The user moved everything to the `.env` file and encountered another error. It was recommended to use the provided `docker-compose.yml` and `.env` file when installing Appwrite using Docker. The user planned to test using the `.env` file and, if successful, deploy the software
fafa
16 Nov, 2023, 18:28

where I install the software from scratch, set it up correctly and then use the .env file instead, or whatever the software needs

fafa
16 Nov, 2023, 18:28

but I can try using the .env and see if it works

Drake
16 Nov, 2023, 18:30

you should be using the docker-compose.yml and .env file provided when installing Appwrite using docker. Any env var changes should be done in the .env file. When you're done testing, you can copy the whole appwrite folder (with the docker-compose.yml and .env files) to your production server and run docker compose up -d

fafa
16 Nov, 2023, 19:27

Moved everything to .env, now am getting this:

Drake
16 Nov, 2023, 19:29

i've seen this happen if the github callback URLs in the github app are incorrect, missing, or not in the right order

fafa
16 Nov, 2023, 19:29
Drake
16 Nov, 2023, 19:30

refreshing the page still shows the same values?

fafa
16 Nov, 2023, 19:30

correct

Drake
16 Nov, 2023, 19:31

Is the output of docker compose exec appwrite vars all look correct for the GITHUB env vars?

Drake
16 Nov, 2023, 19:31

for the account permissions in the github app, is the email address permission set to read-only?

fafa
16 Nov, 2023, 19:35

yes

fafa
16 Nov, 2023, 19:35

seems to be good

fafa
16 Nov, 2023, 19:36

although this gives invalid private key, even though if i try anything else, i get a different error

fafa
16 Nov, 2023, 19:36

so i think the key is correct too

Drake
16 Nov, 2023, 19:36

even though if i try anything else, i get a different error

huh what do you mean?

fafa
16 Nov, 2023, 19:37

oh nvm, suddenly it says valid

fafa
16 Nov, 2023, 19:37

kept yelling invalid key the entire time, but now it seems fine, however still getting that error

fafa
16 Nov, 2023, 19:37

it's on /v1/vcs/github/callback

fafa
16 Nov, 2023, 19:38

so i can install everything, but the moment it redirects back i get that

Drake
16 Nov, 2023, 19:39

maybe something is wrong with your _APP_VCS_GITHUB_CLIENT_ID or _APP_VCS_GITHUB_CLIENT_SECRET

fafa
16 Nov, 2023, 19:40

ah!

fafa
16 Nov, 2023, 19:41

the app id was incorrect.. no clue where i got that id from

fafa
16 Nov, 2023, 19:41

thank you so much

fafa
16 Nov, 2023, 19:41

[Solved] GH Functions callback error 500

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