-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add error screens for connecting to the JWT service #2952
base: livekit
Are you sure you want to change the base?
Conversation
8775e25
to
873ec24
Compare
@fkwp please can you review the wording with your Product hat on? is it too verbose? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to see some tests for this.
Can we mock the fetch
response and assert that the error is correctly mapped?
Quick brain down of errors to mock:
- DNS resolution failure
- Connection timeout
- 500 server response
- 404 server response
- JWT service rejects with non-okay response
- successful response doesn't throw error
Note that the 'verbose' parts are only shown once you press 'show details'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick one: The PR needs a rebase/merge from upstream.
5261204
to
9b532e6
Compare
Based on #2951 diff robintown/element-call@error-screens...jwt-error-screens
The error screens look like this, leading with a minimally jargon-y message, then with a 'show details' button to put homeserver admins on the right track:
(Ignore the "status code 200" :D I just flipped the condition to get the screenshot.)