-
Notifications
You must be signed in to change notification settings - Fork 787
Uncaught Error: Network Error: Failed to Fetch #763
Comments
Hi @kristojorg, I believe there is an ongoing struggle with error handling. See #57. But for your scenario:
Feel free to ask any follow up questions in the react-apollo slack channel. |
This error seems to happen directly after the app loses connection or goes idle. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to React Apollo! |
Having this happen too. Failed to Fetch errors when our users have left the page open for at least a couple minutes. Seems to never happen within the first 2 minutes of loading our page. |
This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo! |
We are getting these |
@trevordmiller did you ever track this down? I'm wondering if it is just a loss of wifi/internet connection and that's the fetch lib's error? |
@acomito Nope, but it went away when we upgraded to Apollo 2 :) |
same issue v2.2.0 |
yes, having same problem oto with 2.2.0 |
Any workaround for this? Edit: The cause of my error was that I was passing a header with a null value on the configuration of my client: operation.setContext({
headers: {
"X-JWT": localStorage.getItem("jwt") || null
}
}); As soon as I removed the operation.setContext({
headers: {
"X-JWT": localStorage.getItem("jwt") || ""
}
}); |
@serranoarevalo Thank you , this is solve my problem |
Might help others: I had the Chrome extension HTTPS Everywhere installed and enabled everywhere so it was trying to force Disabling it for |
Good morning there is some solution for this problem I have tried in those ways and I can not give solution to this problem. |
@CarlFMateus may I see your root code for integration with apollo and your query in HOC mode ? |
Thank you Me-from-22-days-ago 🤗 |
I had this problem too with django as back-end, my front was ran on
I changed the settings as bellow and error fixed.
|
I am seeing some unfortunate uncaught errors in Chrome 55. I am making simple graphql queries using the HOC
query
component, but am getting errors. Not sure if the root of the problem is an actual timeout as shown, or if it is something else inreact-apollo
orapollo-client
, but either way it seems like this should be handled more smoothly?Any ideas how to begin debugging this?
Version
The text was updated successfully, but these errors were encountered: