Skip to content

fix: api/token/route.ts with automatic dispatch (no agent name)#331

Merged
thomasyuill-livekit merged 1 commit intomainfrom
ty/fix-api-token-route-auto-dispatch
Apr 11, 2026
Merged

fix: api/token/route.ts with automatic dispatch (no agent name)#331
thomasyuill-livekit merged 1 commit intomainfrom
ty/fix-api-token-route-auto-dispatch

Conversation

@thomasyuill-livekit
Copy link
Copy Markdown
Contributor

@thomasyuill-livekit thomasyuill-livekit commented Apr 11, 2026

Issue

Resolves #325

POST /api/token 500 in 341ms
Error: cannot decode message livekit.RoomConfiguration from JSON: undefined
    at POST (app/api/token/route.ts:41:42)

Solution

This is happens as the result of an empty room_config when AGENT_NAME is blank

This is a formatted version of #326 by @fahim-uddin

Testing

Please test with both explicit and automatic agent dispatch

@thomasyuill-livekit thomasyuill-livekit self-assigned this Apr 11, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sandbox-voice-assistant Ready Ready Preview Apr 11, 2026 0:45am

Request Review

Co-Authored-By: Fahim Uddin <fahim-uddin@users.noreply.github.com>
@thomasyuill-livekit thomasyuill-livekit merged commit f59a6b1 into main Apr 11, 2026
5 checks passed
@thomasyuill-livekit thomasyuill-livekit deleted the ty/fix-api-token-route-auto-dispatch branch April 11, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Token API error for empty room config object

2 participants