Instructions to replicate:
- Go to create function
- "Connect Git repository"
- Click "GitHub"
- On the github appwrite functions, under "repository access", hit "save"
- After saving, I am redirected back to my appwrite backend with the following error:
message "Server Error" code 500 type "general_unknown" version "1.5.4"
Here are the errors as they appear in docker logs: [Error] Timestamp: 2024-04-17T19:54:29+00:00 [Error] Method: GET [Error] URL: /v1/vcs/github/callback [Error] Type: Ahc\Jwt\JWTException [Error] Message: Signing key cannot be empty [Error] File: /usr/src/code/vendor/adhocore/jwt/src/ValidatesJWT.php [Error] Line: 34 [Error] Timestamp: 2024-04-17T19:54:29+00:00 [Error] Method: [Error] URL: /favicon.ico [Error] Type: Appwrite\Extend\Exception [Error] Message: The requested route was not found. Please refer to the API docs and try again. [Error] File: /usr/src/code/app/controllers/general.php [Error] Line: 860
Googling the first issue "Signing key cannot be empty", I found this post where a user resolved the issue by specifying _APP_OPENSSL_KEY_V1 in the .env file: https://github.com/appwrite/appwrite/issues/6043
However, I already have an app openssl key in my env file.
I verified the callback URLs and webhook specified in github through the documentation at https://appwrite.io/docs/advanced/self-hosting/functions. I also ensured the .env file contains the correct github settings (app name, app id, id, secrets, private key...)
This worked before, I don't know when it stopped working as I haven't touched functions in a while.
also tried removing callback urls in github and re-adding them. I also disconnected github integration from appwrite to try and restart the connection process, but no luck.
Thanks for the help
Recommended threads
- Realtime: Email Verification Not work
There are some issues with real-time updates. For email verification, updates triggered by the console will be checked, but real-time updates are not triggered ...
- preview domain 500 internal server error
Appwrite 1.8.1 The main domain is accessible, but the preview domain is inaccessible. Accessing the preview domain displays an Internal Server Error.
- [BUG] The cloud cannot be migrated to se...
The cloud cannot be migrated to self-hosting. The content of this post is exactly the same as [issue 11068](https://github.com/appwrite/appwrite/issues/11068) ...