rhythmic-king-41914
12/18/2025, 3:51 PM@livekit/rtc-node v0.13.22) fails to connect to LiveKit Cloud rooms because it makes an
unauthenticated HTTP request to /settings/regions, which returns "unauthorized".tall-airline-16756
12/18/2025, 3:51 PMtall-airline-16756
12/18/2025, 3:52 PM/settings/regions from @livekit/rtc-node v0.13.22.
Please try these steps so we can narrow this down:
1. Verify the token you pass to Room.connect() is valid, unexpired, and includes the room-join grant (example uses roomJoin: true and the room name).
2. Confirm you generate the JWT exactly as shown when adding grants (example):
const token = new AccessToken(apiKey, apiSecret, { identity: 'test' });
token.addGrant({ roomJoin: true, room: 'my-room' });
const jwt = await token.toJwt();
1. If you use region pinning, confirm your project’s pinned region matches the endpoint you connect to.
2. Upgrade the SDK from v0.13.22 to the latest @livekit/rtc-node release and retry — this version may contain a bug that was fixed in later releases.
If you still see the unauthorized response after those checks, please share:
• The exact SDK version you upgraded/downgraded to (if you try step 4),
• A redacted copy of the token payload (JWT decoded — remove secret parts) or the token’s grants and expiry,
• The connect call you’re using (code snippet with Room.connect(...)) and whether you use region pinning.
With that info I’ll help pinpoint whether it’s a token/grant issue, a region mismatch, or an SDK bug and provide next steps.
Sources: Authentication | LiveKit docs | Region pinning | LiveKit docsrhythmic-king-41914
12/18/2025, 3:56 PMtall-airline-16756
12/18/2025, 3:56 PM