Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error codes #101

Open
kixelated opened this issue Oct 20, 2023 · 0 comments
Open

Better error codes #101

kixelated opened this issue Oct 20, 2023 · 0 comments

Comments

@kixelated
Copy link
Owner

kixelated commented Oct 20, 2023

If you use moq-pub with a duplicate broadcast, you'll get an error:

Error: failed to create MoQ Transport session

Caused by:
    0: decode error: io error: connection lost
    1: io error: connection lost
    2: connection lost
    3: closed by peer: 91141958511331

A few issues here:

  1. The error code is not being converted from the WebTransport number space back to the application number space. 91141958511331 = 409 or something
  2. We should have a 1:1 mapping between error codes so we can display the human-readable text. In this case, duplicate.
  3. Or errors have an optional "reason" so we should display that instead.
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

No branches or pull requests

1 participant