calm-agency-87500
11/25/2025, 3:51 PM{"type":"ConnectError","message":"engine: signal failure: failed to retrieve region info: error sending request for url (https://<my-project>.livekit.cloud/settings/regions)tall-airline-16756
11/25/2025, 3:52 PMtall-airline-16756
11/25/2025, 3:52 PM<my-project> subdomain is spelled exactly as in your LiveKit project.
• Verify SDK initialization: ensure your agent connects with the correct server URL (example for signaling uses wss://<your-project>.livekit.cloud) and a valid token.
• Check for region pinning: if you’ve enabled region pinning, confirm the pinned region is valid for your project.
• Retry and inspect logs: try a reconnect and share the surrounding log lines and timestamps (especially any repeated failures or HTTP errors when fetching /settings/regions).
• Confirm SDK version: ensure you’re running a recent LiveKit Node SDK (older versions can have region-discovery bugs).
A couple targeted questions to help me diagnose
1. Can you paste the exact server URL and code snippet you use to initialize/connect the Room (redact tokens)?
2. Is region pinning enabled for this project? If so, which region is pinned?
3. Do the agent logs show an HTTP status or DNS error for the /settings/regions request (e.g., 4xx/5xx or “name not resolved”)?
4. Did this start suddenly or after a change (deploy, config change, SDK upgrade)?
If you share the answers and the relevant log lines, I’ll suggest the next steps (configuration change, retry pattern, or a specific debugging snippet).
Sources: Diagnosing Connection Errors with Connection Test Utility | Region pinning | LiveKit docs | Configuring firewalls | LiveKit docscalm-agency-87500
11/25/2025, 4:15 PMat Room.connect (file:///app/node_modules/@livekit/rtc-node/dist/room.js:469:15)\n at async JobContext.connect (file:///app/node_modules/@livekit/agents/dist/job.js:131:5)\n at async entry (file:///app/dist/agent.js:4517:5)\n at async file:///app/node_modules/@livekit/agents/dist/ipc/job_proc_lazy_main.js:72:5"
4. This is only happening when deploying the agent to cloud. Locally the agent connects to the room with no errorstall-airline-16756
11/25/2025, 4:15 PMcurl -v https://<my-project>.livekit.cloud/settings/regions from inside the deployed agent container (or use `dig`/`nslookup` if available). Paste the response or errors.
1. WebSocket handshake test
◦ From the same environment, test a simple WebSocket connect (wscat or a small Node script) to your full wss URL to see if the handshake succeeds or returns an HTTP error.
1. Egress/network policy
◦ Confirm the cloud agent environment allows outbound TLS (TCP 443) and can resolve wildcard LiveKit domains. If your deployment platform has egress filtering, allow *.livekit.cloud.
1. SDK and URL sanity
◦ Your wss://<my-project>.livekit.cloud/rtc?access_token=...&...&sdk=js&version=2.16.0&protocol=16 looks correct. Ensure the agent uses the same SDK version (2.16.0) or a recent patch.
1. Minimal repro
◦ Deploy a tiny test job in the same cloud environment that only runs Room.connect then logs success/failure. This isolates agent job lifecycle concerns.
Please share:
• Output of the `curl`/DNS test or the WebSocket test errors.
• Any platform egress/firewall settings for the cloud agent (if you can paste relevant rules).
• The agent container/node SDK version if different from 2.16.0.
With those logs I’ll suggest the exact next steps (DNS fix, egress rule change, or a retry/workaround). Would you like the exact curl and minimal Node test snippets to run inside the container?
Sources: Connecting to LiveKit | LiveKit docs | Configuring firewalls | LiveKit docs | Job lifecycle | LiveKit docs | Agent deployment CLI reference | LiveKit docs