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

Display errors correctly on Unauthenticated-Status #1624

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

fraxachun
Copy link
Contributor

@fraxachun fraxachun commented Jan 25, 2024

These types of error shouldn't normally appear if the AuthProxy is configured correctly. However, if it happens this improves the error messaging when in an ErrorBoundary or CurrentUserProvider (which normally is the outermost component which calls the API).

Also throw the correct Exception in the CometGuard and append the underlying error message (though don't show it to the user as like mentioned before this normally should not happen).

@fraxachun fraxachun force-pushed the error-unauthenticated branch 2 times, most recently from da74689 to 1f6e6d7 Compare January 26, 2024 06:56
@fraxachun fraxachun force-pushed the error-unauthenticated branch from 1f6e6d7 to f2307f0 Compare January 26, 2024 06:59
…olloLink.tsx

Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
johnnyomair
johnnyomair previously approved these changes Jan 30, 2024
nsams
nsams previously approved these changes Jan 31, 2024
@johnnyomair
Copy link
Collaborator

@fraxachun please resolve conflicts, thanks!

@fraxachun fraxachun dismissed stale reviews from nsams and johnnyomair via 0288ee5 February 11, 2024 16:10
@fraxachun fraxachun force-pushed the error-unauthenticated branch from 0288ee5 to 0cddf32 Compare February 11, 2024 16:12
@fraxachun
Copy link
Contributor Author

please resolve conflicts, thanks!
@johnnyomair Done

@johnnyomair johnnyomair merged commit ec4ef75 into next Feb 13, 2024
10 checks passed
@johnnyomair johnnyomair deleted the error-unauthenticated branch February 13, 2024 14:16
fraxachun added a commit to vivid-planet/comet-charts that referenced this pull request Feb 21, 2024
Improves error messaging, especially in conjunction with
vivid-planet/comet#1624
fraxachun added a commit to vivid-planet/comet-charts that referenced this pull request Mar 27, 2024
Improves error messaging, especially in conjunction with
vivid-planet/comet#1624
fraxachun added a commit to vivid-planet/comet-charts that referenced this pull request Apr 18, 2024
Improves error messaging, especially in conjunction with
vivid-planet/comet#1624
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.

3 participants