Back

Signing key cannot be empty when trying to connect to github

  • 0
  • Self Hosted
  • Functions
Leon 🧿
11 Aug, 2024, 16:01

I keep getting this error:

TypeScript
2024-08-11T13:33:13.260733458Z [Error] Timestamp: 2024-08-11T13:33:13+00:00
2024-08-11T13:33:13.260828275Z [Error] Method: GET
2024-08-11T13:33:13.260846616Z [Error] URL: /v1/vcs/github/callback
2024-08-11T13:33:13.260860783Z [Error] Type: Ahc\Jwt\JWTException
2024-08-11T13:33:13.260874789Z [Error] Message: Signing key cannot be empty
2024-08-11T13:33:13.260888100Z [Error] File: /usr/src/code/vendor/adhocore/jwt/src/ValidatesJWT.php
2024-08-11T13:33:13.260904012Z [Error] Line: 34

But my environment variables look fine:

TypeScript
_APP_VCS_GITHUB_PRIVATE_KEY=PRIVATE_KEY
_APP_OPENSSL_KEY_V1=OPENSSL_KEY

I read in the documentation that the key needs to be surrounded with quotes, but whenever i put quotes in coolify it just removes them. Any idea?

TL;DR
Issue: Error message "Signing key cannot be empty" when trying to connect to GitHub even though environment variables seem correct. Solution: Make sure to set the private key in environment variables with quotes, like this: ``` _APP_VCS_GITHUB_PRIVATE_KEY="PRIVATE_KEY" _APP_OPENSSL_KEY_V1="OPENSSL_KEY" ``` Coolify removes quotes, so ensure they are properly set in the environment variables.
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