Common Issues - lair-framework/lair GitHub Wiki
Drones
Fatal: Could not unmarshal JSON. Error invalid character 'N' looking for beginning of value
This error is reported from drones. The cause is the drone can not communicate with the API server. Ensure your the URL for LAIR_API_SERVER
is correct. Some troubleshooting steps:
- Use curl to test if the API server is responding. Replace the host and port with what is configured in y our
LAIR_API_SERVER
environment variable:curl -ki https://localhost:11013/api/project
. If you do not receive a401
JSON response, your API server is not available. Check your caddy configuration and ensure the server is running. - Try setting the host in your
LAIR_API_SERVER
tolocalhost
instead of127.0.0.1
.