Back

Getting an error 500 when authenticating GitHub

  • 0
  • Self Hosted
  • Functions
shekpaar
27 Sep, 2024, 20:01

When I connect to Github I get this error. All containers are running.

TL;DR
Developers are experiencing error 500 when authenticating GitHub due to a deleted private key by a team member. The error message indicates a host resolution issue with GitHub's API. The suggested solution is to revoke the private key and generate a new one. Additionally, developers are advised to ensure all environment variables are correctly set, and to consider recreating the container to apply any necessary changes.
D5
27 Sep, 2024, 20:02

Where do you get this error?

D5
27 Sep, 2024, 20:02

Do you have set all the env variables?

D5
27 Sep, 2024, 20:03

Do you have recreated the container in order to apply the changes?

shekpaar
27 Sep, 2024, 20:06

I get it in the browser. It is the page i get redirected after github.

shekpaar
27 Sep, 2024, 20:06

Yes I set all the env variables

shekpaar
27 Sep, 2024, 20:07

recreated with --remove-orphans and --build --force-recreate

shekpaar
27 Sep, 2024, 20:07

also rebooted the system

shekpaar
27 Sep, 2024, 20:31

appwrite | [Error] Timestamp: 2024-09-27T20:29:14+00:00 appwrite | [Error] Method: GET appwrite | [Error] URL: /v1/vcs/github/callback appwrite | [Error] Type: Exception appwrite | [Error] Message: Could not resolve host: api.github.com with status code 0 appwrite | [Error] File: /usr/src/code/vendor/utopia-php/vcs/src/VCS/Adapter.php appwrite | [Error] Line: 362

D5
27 Sep, 2024, 20:34

@shekpaar deleted the private key. Make sure to revoke it and generate a new one

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