Hello all,
- I created a Github app (following the doc here https://appwrite.io/docs/configuration#git)
- Then adding all vars in
.env
then relaunch server with docker - I go to "Function", "Connect Git repository", "GitHub"
- App is installed & ensured to click on "Only select repositories" then "All repositories" then "Save" to ensure access are good
- I click on "Create function", from Quick Start I select "Node.js" for ex.
- I click on Next for all step then "Create a new repository"
- I click on "GitHub" & I see error 500 (sometimes I see the same screen: Repository Access, I do the same trick as previously)
What can I do ? Thanks π
Apparently I had a 401 error...
{"message":"Invalid webhook signature.","code":401,"type":"general_access_forbidden","version":"1.4.1"}
please set the webhook secret in appwrite and github
I generated a random string, set on Github & set _APP_VCS_GITHUB_WEBHOOK_SECRET
too :/
did you run docker compose up -d
to apply the changes?
Yep !
I verified with `docker-compose exec appwrite vars``
Tried to change webhook secret but not working too ...
It seems some requests works now but I see error 500 again ...
maybe network problem. maybe permissions problem with the github app
Hum I got something helpful, in the URL of my appwrite instance I got this after install github app:
https://my.server.com/console/project-test/functions?from=github&to=cover&error=%7B%22message%22%3A%22Failed+to+obtain+access+token.+The+GitHub+OAuth2+provider+returned+an+error%3A+Not+Found%22%2C%22type%22%3A%22user_oauth2_provider_error%22%2C%22code%22%3A404%7D#
I'm sure about permissions, I checked it again and it's OK π
double check the callback urls in github. they need to be the same order as in the docs. then ninstall the github app from your account and go through the flow again
Ah ok ! It's not on the same order !
I will try thanks π
It works π Thank you for your (very quick) help !
[SOLVED] Error 500 when creating a function with Github
Recommended threads
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Function in Node.JS to monitor events ar...
Hello everyone. I'm creating my first Node.JS function, but I don't have much experience with node and javascript. I'm trying to create a function, that monito...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...