Open paarriagadap opened 1 month ago
@paarriagadap are you on a wifi when these errors occur? My hunch would be that this is caused by some intermittent network issues. We could add an automatic retry logic though
@danyx23 Hi, yes, on wifi. I'm not sure if that would be the case, as I haven't seen intermittent connection in other situations. I understand that it also happens to @saloni-nd at least, according to her emoji in the Slack post
Yeah it's hard for me to remember exactly when it happens, but I think it's usually been when I've had the tab open for a while and come back to it later on. I'll try to keep a look out for the next time it happens.
It happened many times today while showing Grapher to @antea04
We want to look into this, but don't currently have a good intuition as to what could be the problem.
It could be server restarts (because of OOM or other issues maybe?), but very much unsure about that.
It probably makes sense to look at this for, like, a day, and then see whether we could find a red herring somewhere.
Thanks @marcelgerber, I will post whenever this happens again anyway, and the context around the error.
We now have a hunch that this might be related to Cloudflare Auth tokens running out.
Just happened once I returned to an admin tab to click "Datasets". It seems it's just like Saloni says, with tabs that are open for a while.
Description
From time to time, there is an error appearing at random on Grapher admin. The error message says
TypeError: Failed to fetch
and it is commonly solved after refreshing. It is not problematic except when we are doing some changes before saving or when we modify a chart for a data insight and we have not exported.Expected behaviour
There should be no error message of this kind.
Steps to reproduce
It can't be reproduced because it happens randomly, but if it is helpful, this error appeared for the last time on 31 May 2024, ~10:30, 10:35 AM in the UK (in case it can be observed in the log).
Screenshots
From the last time it happened, while editing PNG and SVG exports for a DI.![image](https://github.com/owid/owid-grapher/assets/63430031/ae29aa41-b435-4722-ad76-dbdbf3966e17)
Environment
For desktop, provide:
Additional context
Original Slack post