Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Dec 22, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Dec 22, 2025

🦋 Changeset detected

Latest commit: f66f3d8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@boks1971 boks1971 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have called the old path handler inside server as v0, maybe use that name here also instead of Legacy? But, not too particular.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 85.41 KB (+0.21% 🔺)
dist/livekit-client.umd.js 94.18 KB (+0.23% 🔺)

Comment on lines +1007 to +1012
case 401:
case 403:
const msg = await resp.text();
return ConnectionError.notAllowed(msg, resp.status);
default:
break;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: The old code looks like it was checking any 4xx error for this case. Is it possible that the validation url could return a 4xx other than 401/403 and should anything happen in that case to keep the preexisting behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the current codes returned by the validation logic can be seen here https://github.com/livekit/livekit/blob/4104b8270ba8c653f80a27737bd125f06ef0e06d/pkg/service/utils.go#L245-L246

Today there's 400 and 401.
Returning notAllowed for a 400 error doesn't feel quire right. Surfacing the underlying status code instead feels a bit more obvious.

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.

5 participants