witty-yak-62929
05/30/2025, 8:51 AMcolossal-rose-18633
05/30/2025, 9:10 AMsteep-balloon-41261
05/30/2025, 9:36 AMhelpful-machine-32005
05/30/2025, 9:39 AMdocker run --rm \
--cap-add SYS_ADMIN \
-e EGRESS_CONFIG_FILE=/out/config.yaml \
-v ~/livekit-egress:/out \
livekit/egress
brief-vase-33757
05/30/2025, 10:20 AMenough-sunset-14907
05/30/2025, 10:20 AMhappy-angle-72232
05/30/2025, 10:25 AMsteep-balloon-41261
05/30/2025, 10:30 AMrich-monitor-70665
05/30/2025, 10:46 AMlittle-article-83676
05/30/2025, 10:46 AMrich-monitor-70665
05/30/2025, 10:47 AMrich-monitor-70665
05/30/2025, 10:48 AMstrong-furniture-4150
05/30/2025, 10:49 AMabundant-father-33863
05/30/2025, 10:57 AMlittle-yacht-32020
05/30/2025, 11:23 AMlivekit.rtc.room.ConnectError: engine: signal failure: failed to retrieve region info: error decoding response body: expected value at line 1 column 1
.
Project URL: <wss://twindersagarstrip-xyhjwf0v.livekit.cloud>
Here is what I've discovered:
* Browser Connection Works: I can connect to my project room (avatar_room_a
) successfully from the same machine using the web app at <http://meet.livekit.io|meet.livekit.io>
. This proves my network path and credentials are fundamentally correct.
* CLI Token Generation Works: I can use the lk
CLI tool to generate valid tokens for my project.
* Python Connection Fails Consistently: The Python script fails with the region info
error under all of the following conditions:
* Running on my local Windows machine.
* Running inside a brand new, clean Gitpod cloud container (Linux).
* Using a token generated by the Python AccessToken
class (this sometimes gives a 401 Unauthorized
instead, suggesting the SDK's token signing is also incompatible with my setup).
* Using a known-good token generated by the lk
CLI.
* Connecting to the main project URL.
* Connecting directly to the regional URL (<wss://eu-central-1.livekit.cloud>
).
* Things I've Ruled Out:
* Local firewalls (the error persists even with Windows Firewall completely disabled).
* Local proxies (no proxy environment variables are set).
* Corrupted Python environment (the error persists in a fresh venv
inside Gitpod).
Since the browser (using the JS SDK) can connect but the Python SDK cannot, even from a pristine cloud environment, this strongly suggests a specific bug or incompatibility between the Python SDK's connection process and the cloud backend for my project.
Here is the traceback from the last attempt in Gitpod, using a valid token generated by the CLI:
((venv) ) gitpod /workspace/sagar (main) $ python avatar_a_controller.py
--- Full Avatar Control Script (using CLI token) ---
Attempting to connect to <wss://twindersagarstrip-xyhjwf0v.livekit.cloud>...
livekit::rtc_engine:392:livekit::rtc_engine - failed to connect: Signal(RegionError("error decoding response body: expected value at line 1 column 1")), retrying... (1/3)
An error occurred: engine: signal failure: failed to retrieve region info: error decoding response body: expected value at line 1 column 1
Traceback (most recent call last):
File "/workspace/sagar/avatar_a_controller.py", line 39, in main
await room.connect(LIVEKIT_URL, token)
File "/workspace/sagar/venv/lib/python3.12/site-packages/livekit/rtc/room.py", line 394, in connect
raise ConnectError(cb.connect.error)
livekit.rtc.room.ConnectError: engine: signal failure: failed to retrieve region info: error decoding response body: expected value at line 1 column 1
Could you please provide any insight into what might be causing this? Thank you for your help. 🙏🙏🙏steep-balloon-41261
05/30/2025, 11:24 AMadamant-airport-69140
05/30/2025, 11:24 AMmany-ram-27523
05/30/2025, 11:51 AMsteep-balloon-41261
05/30/2025, 11:52 AMsteep-balloon-41261
05/30/2025, 12:12 PMearly-afternoon-97327
05/30/2025, 12:57 PMsteep-balloon-41261
05/30/2025, 1:47 PMlittle-traffic-72206
05/30/2025, 1:56 PMastonishing-kilobyte-42234
05/30/2025, 2:15 PMsteep-balloon-41261
05/30/2025, 3:26 PMminiature-nail-35141
05/30/2025, 4:12 PMsteep-balloon-41261
05/30/2025, 4:17 PMglamorous-byte-32596
05/30/2025, 4:45 PMancient-hospital-67205
05/30/2025, 4:46 PMcreamy-judge-56458
05/30/2025, 5:02 PM