Skip to content

Fetch generic error message #413

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

Open
Swackles opened this issue Oct 7, 2021 · 0 comments
Open

Fetch generic error message #413

Swackles opened this issue Oct 7, 2021 · 0 comments

Comments

@Swackles
Copy link

Swackles commented Oct 7, 2021

Introduction

For the past few days, we've been debugging an issue with our API calls, and this issue was made harder by the generic "TypeError: network request failed" message, which didn't give us much info to go off. I ended up making our own simple fetch to see what the actual error message was and from there it was very simple to debug the issue.

Details

Maybe there's a way to get better error messages from a fetch that I don't know of, but if there isn't I'd like to discuss change so that error message from the native side gets passed back to react.

Discussion points

  • Is there a better way than already exists?
  • Why does fetch currently return a generic error message?
  • What would it take to change it?
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

No branches or pull requests

1 participant