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(space-nuxt-base): catch FetchError correctly #62

Closed
wants to merge 2 commits into from

Conversation

eunjae-lee
Copy link
Contributor

@eunjae-lee eunjae-lee commented May 31, 2024

What?

err instance of FetchError works on development mode, but not on the production. So we're changing the way to check the error.

Note

I was working on another ticket where we wanted to prevent user from being redirected to /error.vue when a specific server error happens. I couldn't solve it yet. However, during the debugging, I've realized FetchError didn't work on the production, so I opened this PR independently.

@eunjae-lee eunjae-lee requested review from a team, demetriusfeijoo, BibiSebi and Dawntraoz and removed request for a team May 31, 2024 16:02
Dawntraoz
Dawntraoz previously approved these changes Jun 3, 2024
@BibiSebi
Copy link
Contributor

BibiSebi commented Jun 3, 2024

While testing today the ìnstanceOf seemed to be working, I need to retry tomorrow.

@eunjae-lee
Copy link
Contributor Author

While testing today the ìnstanceOf seemed to be working, I need to retry tomorrow.

@BibiSebi did you test it with pnpm run build && pnpm run preview?

@BibiSebi
Copy link
Contributor

BibiSebi commented Jun 4, 2024

@eunjae-lee I just retested it on "production" with console log and it worked.
image

@eunjae-lee
Copy link
Contributor Author

Screenshot 2024-06-06 at 17 59 28

Screenshot 2024-06-06 at 17 59 35

Screenshot 2024-06-06 at 18 08 06

I've added a button that throws an error, and err instanceof FetchError was false in this test 🤔

I don't know how you tested it. Anyway this is not super urgent, so I'll keep this open until you come back and give it a test together!

@Dawntraoz Dawntraoz self-requested a review June 10, 2024 13:53
@Dawntraoz Dawntraoz dismissed their stale review June 10, 2024 13:54

Didn't try in prod

@eunjae-lee eunjae-lee closed this Jul 22, 2024
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.

4 participants