This specific error only occurs on the dashboard and means that there is an issue making an API request to Diffbot's servers, often due to a poor network connection. The causes of this error can be difficult to identify, but here are some ways to go about it.
Check your internet connection
90% of the time, this error is caused by a poor internet connection. Verify that your internet connection is stable by running a ping test (ping 8.8.8.8
in a terminal) or using a website like packetstats.com. A stable connection will allow your browser to make a complete round trip to Diffbot's API servers and return data.
Check your console log
Your browser's console log can contain a wealth of debugging information that will be helpful to figure out why a "Failed to fetch" error is occurring. Open the console log in Chrome, Firefox, or Edge, search your log for the "Failed to fetch" error and take a look at the log messages surrounding it. In the case below, we can see that the "Failed to fetch" error happened right after another related error tagged as ERR_INTERNET_DISCONNECTED
. This is a good hint that my internet connection is the issue.
Try another client
"Failed to fetch" is a generic network error returned by your browser. Instead of using the dashboard to make an API request, you could try making a cURL request or using an API testing tool like Postman. If the request continues to fail with those options, your internet connection may be the cause of this error.
Still not working?
Let us help! Share your troubleshooting attempts with us at [email protected]. For faster support, include a screenshot of your console log and an explanation of troubleshooting steps you've tried.