I’m using Charts on Atlas and got this error when refreshing my chart:
(TRANSPORT_ERROR): the request transport encountered an error communicating with Stitch: Network request failed
The chart runs on a collection with 16 millions of records.
When I reduce the date filter from the 2 last days to the 2 last hours, I got a result after few seconds.
Could you please help?
Hi @Serge_Fabiano -
This is a timeout error. Charts used to show a clearer message explaining this, but it seems the underlying exception has changed so we need to update our error handling logic.
Charts currently will wait up to 2 minutes to execute a query before timing out. If you’re experiencing timeouts, you have a few options:
- Add indexes on any fields used in filters
- Scale the cluster up or out
- Pre-aggregate the data with a materialised view.
I’ll check pre-aggregation of the data with a materialised view, thanks!!!
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.