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

! fix: catch errors during initialization of the SIP client #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sam-trost
Copy link

@sam-trost sam-trost commented Nov 17, 2024

Add a try catch and report the error to the user about which configuration is invalid. Log additional details to the console.

Fixes: #38

@davehorton davehorton requested a review from xquanluu November 17, 2024 14:21
sipUA.current = sipClient;
} catch (error) {
console.error(error);
toast({
Copy link
Contributor

Choose a reason for hiding this comment

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

what was the original issue that you faced with, how can I reproduce this issue?

Copy link
Author

Choose a reason for hiding this comment

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

if you enter invalid content in any of the settings that causes the sipUA to error:

Two things I know will reproduce

  1. invalid sip endpoint (try entering nonsense, like def)
  2. invalid username (try including an @ in the username)

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.

bug: invalid settings causes extension to not render
2 participants