question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What does error message "Failed to fetch" mean?

See original GitHub issue

Every single day I get Failed to fetch generic error message when using the upload files v2 api. What do I benefit from such generic message? I cannot even debug the issue or know what’s wrong, It happens so randomly from time to time!!!

error

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
greg-dbcommented, Feb 19, 2021

@ImSolitude Thanks for the information. From that code, it looks like you’re using this in a React app. This SDK doesn’t officially support React unfortunately, but I’ll pass this along as a feature request. I can’t promise if or when that might be implemented though.

1reaction
phil294commented, Jan 6, 2021

I actually just now found the reason in my case: When the site is offline, a call like x = await filesListFolder(...) fails with a simple

message: "Failed to fetch",
stack: "TypeError: Failed to fetch"

object. This is also the case with v8.2.0. I’ll now just do a try { ... } catch(e) { if(e.message === 'Failed to fetch') { /* show network error to the user */ } }. Thanks for your help and I hope this will help someone else.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix 'Failed to Fetch' Apt Error Caused by Chrome
1. Open a new Terminal window and run the following command (assuming you're on the Stable Channel, if not, see the featured comment):...
Read more >
TypeError: Failed to fetch and CORS in JavaScript | bobbyhadz
An incorrect or incomplete URL has been passed to the fetch() method. · The server you are making a request to does not...
Read more >
Getting "TypeError: Failed to fetch" when the request hasn't ...
This could be an issue with the response you are receiving from the backend. If it was working fine on the server then...
Read more >
Why am I seeing a Failed to Fetch error? - OpenSea Help Center
If you're seeing a “failed to fetch” error, it typically means you're experiencing a connection issue. You can try these troubleshooting...
Read more >
What do I do if "TypeError: Failed to fetch" is displayed when I ...
Object Storage Service:What do I do if "TypeError: Failed to fetch" is displayed when I use a browser to access a bucket or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found