Error when starting egress for gcp: egress info/...
# ask-ai
s
Error when starting egress for gcp: egress info/io.go:230 egress_failed {"error": "invalid character '.' looking for beginning of value", "code": 0, "details": "End reason: Failure"}
t
Thanks for reaching out, Youssef. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're seeing the JSON parse error when starting GCP egress. That error means the
credentials
field sent to the egress request is not valid JSON (commonly a path or malformed string instead of the service account JSON). Please check the following: • Send the full service account JSON, not a file path. The
credentials
value must contain the entire contents of your GCP service account key file (the JSON object), not something like
./credentials.json
. • Ensure the JSON is correctly serialized as a single string. If you embed it in a request or config, the object must be serialized (quotes, braces) and any inner newlines in
private_key
are preserved or properly escaped. • Verify there are no stray characters. The error often appears if the value starts with a non-JSON character such as
.
— check for accidental prefixes, concatenation, or truncated content. • Alternative: use file/env mode. If self-hosting egress, place the
credentials.json
file in the container and point to it via
GCP_CREDENTIALS_FILE
or the
credentials_json
config field instead of inlining the JSON. If you can, paste (sanitized) the exact
credentials
value you're sending or describe how you're passing it (API body, CLI, env var, config file). I’ll review it and point out what needs fixing. Sources: Egress API | LiveKit docs | Web Egress | LiveKit Docs | RoomComposite Egress | LiveKit Docs | Self-hosting the Egress Service | LiveKit docs