Skip to content

Dolby Voxeet error handling - Multiple logs of the same error #8

Discussion options

You must be logged in to vote

I tried to simplify the example and missed a few important details.

Generally, using the create() function instead of fetch() will yield better results since it already has logic to handle when the conference already exists or not.

You can add an error handler for events which helps with suppression of some of the duplicate errors in the lower level sdk logs and inspecting the status:

VoxeetSDK.conference.on("error", (error) => {
  if (error.status === 404) {
      console.log(`Conference with id (${conferenceId}) was not found.`)
  }
});

The conference.status check is really only useful for providing application logic on how to proceed next, as you observed and not as helpful for verifyi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nogalo92
Comment options

@j12y
Comment options

Answer selected by j12y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dolbyio-comms Dolby.io Communications APIs: Add spatial chat and secure real-time multi-party comms ⌨️ web Web application related to JavaScript, frameworks, and browsers
2 participants