Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Jun 19, 2024

skipping one id in UpdateParticipantMetadata in order not to interfere with #733.
Will wait for #733 to be merged before merging this.

@changeset-bot
Copy link

changeset-bot bot commented Jun 19, 2024

🦋 Changeset detected

Latest commit: a7e980a

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

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

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "github.com/livekit/protocol" specified in the `fixed` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

@lukasIO lukasIO requested a review from a team June 19, 2024 13:15
message ErrorResponse {
uint32 request_id = 1;
// http error code
uint32 code = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be http error code? Can everything be mapped to this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

doesn't need to be! Just wanted to give users a familiar set of codes to work with.
What would you suggest as an alternative?

Copy link
Contributor

Choose a reason for hiding this comment

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

If it can be mapped, fine. Too often I have found that it ends up being an exercise is trying to decide between a couple of different options. If we can do enum, that will be great.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see. Do you think we need anything beyond: a default/unspecified error, a not_found and a not_allowed error?

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably not. But things always have a way of expanding. We can see close reason/ disconnect reason. It has grown to a few. This could also grow. It may never, but just leaving the possibility open.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated the proto file to use a Reason enum instead of the http error code

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

lgtm

@lukasIO lukasIO merged commit 6dec8d2 into main Jun 21, 2024
@lukasIO lukasIO deleted the lukas/error-response branch June 21, 2024 08:33
@github-actions github-actions bot mentioned this pull request Jun 21, 2024
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