Errors and Troubleshooting
HTTP Status Behavior
200for successful GraphQL transport (even when query-level errors may exist)400for malformed requests403for forbidden docs path access404for unsupported or missing routes405for unsupported HTTP method on docs routes
GraphQL Error Envelope
The server returns GraphQL-style errors in an errors array.
{
"errors": [
{
"message": "Validation failed",
"extensions": {
"code": "BAD_USER_INPUT"
}
}
]
}
Common Issues
Authentication Fails
- Confirm
X-Access-Keyvalue is correct. - If using query parameter fallback, ensure
access_keyis URL encoded. - Verify bypass mode is not unexpectedly disabled in your environment.
No Data Returned
- Check
siteIdagainst thesitesquery response. - Confirm your date range contains event data.
- Remove optional filters to isolate an over-constrained query.
Validation Errors
- Ensure required input fields are present.
- Verify enum values exactly match schema casing.
- Keep
DateRangeInputstart/end valid and ordered.
Debugging Tip
Enable SQL verification logs in environments where query inspection is allowed:
CLICKHOUSE_QUERY_LOG_ENABLED=true
This logs generated SQL details at debug level through the app logger.