elegant-magician-80782
12/08/2025, 7:11 AMtall-airline-16756
12/08/2025, 7:11 AMtall-airline-16756
12/08/2025, 7:12 AMelegant-magician-80782
12/08/2025, 7:14 AMtall-airline-16756
12/08/2025, 7:14 AMexp and required grants (roomJoin, room name, etc.). A malformed/expired token or missing grants will prevent connect.
Action: Decode the token (e.g., jwt.io) and confirm exp, video.roomJoin, and video.room are correct; confirm API key is active in Project settings.
4) Inspect client/network issues
• WebRTC needs UDP and/or TURN. Corporate firewalls, VPNs, or blocked ports can stop connects.
Action: Run the LiveKit Connection Test from the same network: https://livekit.io/connection-test
5) Agent cold-starts or billing suspension
• If using Agents, cold starts can cause short connection failures (10–20s). If billing/payment failed the project may be restricted.
Action: Check project billing status and whether agents were shut down.
What I need from you to narrow this quickly
• The exact error message you see when connecting (client console/network logs).
• Your plan type (Build/free or paid).
• Whether the connections are humans, agents, or an ingress source.
• A decoded token payload (remove sensitive fields) or confirm token fields shown: exp, video.roomJoin, video.room.
Give those details and I’ll tell you the most likely cause and next steps. Would you like me to start with checking your plan/usage or with the token/error message?
Sources: Quotas and limits | LiveKit docs | Authentication | LiveKit docs | Diagnosing Connection Errors with Connection Test Utility | Firewall Tipselegant-magician-80782
12/08/2025, 7:16 AMtall-airline-16756
12/08/2025, 7:17 AMjob_request event (yes/no).
• Whether this is a human participant, an Agent, or Ingress trying to connect.
• A decoded token payload (remove secrets) or confirm token fields: exp, video.roomJoin, video.room.
• Screenshot or dashboard info showing current active participants and Usage (if possible).
While you gather that, check these three things now:
1. Usage/quotas: Project → Usage — ensure you haven’t exceeded the 5,000 participant‑minute monthly quota (free plan).
2. Concurrency: Confirm concurrent participants <100 (free) and agent concurrency limits aren’t hit.
3. Agent dispatch: Verify worker registered with the correct agent_name and your code is listening for/accepting job_request (ensure job_handler calls accept).
Send the logs and plan/usage details and I’ll tell you the exact next step.
Sources: LiveKit Pricing | Quotas and limits | LiveKit docs | Agents Framework | livekit/livekit_composite | DeepWiki | LiveKit Docselegant-magician-80782
12/08/2025, 11:16 AMtall-airline-16756
12/08/2025, 11:17 AMvideo.roomJoin, video.room, etc.), the credentials are valid.
• Use a server SDK call that requires auth (for example, list rooms). If the SDK call succeeds, keys are working; if it returns an auth error, the key/secret are invalid or revoked.
• Use the lk CLI (e.g., lk room list) configured with your credentials — successful commands confirm the keys.
If you want, tell me which environment (SDK language or lk CLI) you use and I’ll give the exact command/snippet to run.
Sources: Authentication | LiveKit docs | LiveKit CLI project management | LiveKit docs | server-sdk-js | livekit/livekit_composite | DeepWikielegant-magician-80782
12/08/2025, 11:17 AMtall-airline-16756
12/08/2025, 11:18 AMlk token create --api-key YOUR_API_KEY --api-secret YOUR_API_SECRET --identity test --room test-room --join --valid-for 1h
If it returns a JWT, keys are valid. If it errors (auth/signature), keys are invalid.
• Server SDK (recommended if you have backend code): attempt to generate an Access Token signed with your key/secret. If token generation succeeds, credentials are correct. Example languages: Node/Python/Rust.
• Auth-required API call: call an endpoint that requires auth (e.g., list rooms via SDK or CLI). Success = credentials work; auth error = they don’t.
Tell me which you prefer (CLI, Node, Python, Rust, or lk CLI) and I’ll give the exact command/snippet and the error checks to run.
Sources: Rust SDKs | livekit/livekit_composite | DeepWiki | Webhooks | LiveKit docs | Creating SIP Inbound Trunks and Dispatch Rules with Python SDKelegant-magician-80782
12/08/2025, 11:19 AMtall-airline-16756
12/08/2025, 11:19 AMpip install livekit-server-sdk
2) Test code (replace with your values):
import os
from livekit import AccessToken, VideoGrants
from livekit.room import RoomServiceClient
from google.protobuf.json_format import MessageToDict
API_KEY = os.getenv("LIVEKIT_API_KEY", "YOUR_API_KEY")
API_SECRET = os.getenv("LIVEKIT_API_SECRET", "YOUR_API_SECRET")
LIVEKIT_URL = os.getenv("LIVEKIT_URL", "https://cloud.livekit.io") # or your custom URL
# 1) Try generating a token (verifies signing with key/secret)
try:
grants = VideoGrants(room_join=True, room="test-room")
token = AccessToken(API_KEY, API_SECRET).with_identity("test-user").with_video_grants(grants).to_jwt()
print("Token generated OK:", token[:40] + "...")
except Exception as e:
print("Token generation failed — credentials may be invalid:", e)
raise
# 2) (Optional) Try an authenticated API call: list rooms
try:
client = RoomServiceClient(LIVEKIT_URL, api_key=API_KEY, api_secret=API_SECRET)
resp = client.list_rooms({})
print("List rooms succeeded. Rooms:", MessageToDict(resp).get("rooms", []))
except Exception as e:
print("Listing rooms failed — credentials may be invalid or unauthorized:", e)
How to interpret results:
• Token generated OK -> API key/secret are valid for signing.
• Listing rooms succeeds -> credentials are valid and authorized.
• Any auth/signature error -> keys are invalid, revoked, or mismatched.
If you want, paste the error you get and I’ll help interpret it.elegant-magician-80782
12/08/2025, 11:32 AMtall-airline-16756
12/08/2025, 11:32 AMelegant-magician-80782
12/08/2025, 11:34 AMtall-airline-16756
12/08/2025, 11:34 AMelegant-magician-80782
12/08/2025, 12:04 PM