we are running our app in production for 2 months+ already, and we are observing a many of different Apollo Client HTTP/Network errors in Sentry. We are unable to replicate them and not sure what to do with them. It seems to me that some should be retried, others should be ignored, but would love if someone could share their thoughts.
Here’s a list of all the network error messages caught by our Error Link:
Unexpected token < in JSON at position 2
Load failed
JSON Parse error: Unrecognized token ‘<’
Response not successful: Received status code 400
Failed to fetch
NetworkError when attempting to fetch resource.
JSON.parse: unexpected character at line 1 column 2 of the JSON data
request to <our api url> failed, reason: read ECONNRESET
cannot parse response
The network connection was lost.
canceled
The request timed out.
The operation couldn’t be completed. Protocol error