Leon 🧿Original post
Rank 1: Thread
I keep getting this error:
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:
_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?
Summary
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.