After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions.
I removed the existing github connection via Settings -> Git configuration.
After that I tried to add the connection again. I can confirm the installation on github and get redirected to: /v1/vcs/github/callback?code.... with a 500 error.
Looking at the appwrite log i can see the following:
appwrite | http.request · 5.3ms · 6391691e
appwrite |
appwrite | level error
appwrite | http.method GET
appwrite | http.path /v1/vcs/github/callback
appwrite | http.response.code 500
appwrite |
appwrite | Ahc\Jwt\JWTException: Signing key cannot be empty
appwrite | at /usr/src/code/vendor/adhocore/jwt/src/ValidatesJWT.php:34
appwrite | at /usr/src/code/vendor/adhocore/jwt/src/JWT.php:89
appwrite | at /usr/src/code/vendor/utopia-php/vcs/src/VCS/Adapter/Git/GitHub.php:634
appwrite | at /usr/src/code/vendor/utopia-php/vcs/src/VCS/Adapter/Git/GitHub.php:75
appwrite | ... 7 more
I did a little bit more research: Looks like while upgrading the "_APP_VCS_GITHUB_PRIVATE_KEY" variable gets changed. I restored the one from my backup and now it works again.
The different i notice:
The modified one start with:
_APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\\nMIIE...
The working one starts with
_APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nMIIE...
So somehow during migration the new \ got added
Recommended threads
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...