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(web): fetch error reporting #7391

Merged
merged 1 commit into from Feb 27, 2024
Merged

Conversation

michelheusschen
Copy link
Contributor

Fetch errors don't show the error message returned from API responses, because it only expects axios errors. Fixed by handling both fetch and axios errors in the handleError function. The client hook has been changed to only handle fetch errors, because we don't use axios in any page load functions.

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4db49e9
Status: ✅  Deploy successful!
Preview URL: https://2bcbbc23.immich.pages.dev
Branch Preview URL: https://fix-web-fetch-error-handling.immich.pages.dev

View logs

Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

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

LGTM

@alextran1502 alextran1502 merged commit c8bdeb8 into main Feb 27, 2024
25 of 26 checks passed
@alextran1502 alextran1502 deleted the fix/web-fetch-error-handling branch February 27, 2024 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants