salmon-lighter-12882
11/23/2025, 10:14 AMtall-airline-16756
11/23/2025, 10:14 AMtall-airline-16756
11/23/2025, 10:15 AMcredentials 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