Random "TypeError: Load failed" response for calls to Supabase every once in a while. Why might this happen? #27477
Replies: 3 comments 9 replies
-
Do you get this error when running the site locally? it might be worth commenting out functionality line by line to see if the error is caused by one functionality or only when many are being run. I've never seen this error message before. Is this happening in a specific browser as someone in another issue stated they had this happen to them in Safari #20982 |
Beta Was this translation helpful? Give feedback.
-
Any updates? We are facing the exact same issue, also coming predominatly from Safari. |
Beta Was this translation helpful? Give feedback.
-
My app tracks a sporting event with about 500 database writes per 90-minute game. We are typically seeing this error occur about 2-5 times per game with error message: A few observations:
Really eager to get this fixed as it has frustrated many users. |
Beta Was this translation helpful? Give feedback.
-
In my React app, I am currently facing an issue where randomly, every once in a while, a call returns an error to the website instead of the data from the call to Supabase. I am having a difficult time debugging it. Supabase shows that it is not failing on its side. Every time it happens I am logging the error, but I still can't really figure out a reason for the bug. My app is also deployed as a static web app with Azure if that helps at all. It seems to happen randomly for all my API calls. It is not quite evenly distributed amongst them. Any and all help would be much appreciated. It's very weird that the API calls work most of the time, but produce an error every once in a while. If the proportion of errors was lower I would maybe ignore but it seems like I get about 80 or so errors a day for about 1200 people using the site in the same day. Also, I am on the free Supabase plan if that might factor in. I'll put my compute usage at the bottom.
Here is a code snippet for one of the calls (they are all quite similar but some call Supabase functions instead):
report_error()
is a function that inserts an error log into supabase so I can track them)Here is the information I log when an error occurs:
Error distribution:
Here is Supabase error tracking showing no errors:
Supabase compute usage:
Memory: 45%
Swap: 20%
Average CPU: .6%
Max CPU: 1.76%
Disk IO: 1%
I have tried researching what the error message means but I can't find too much on it specifically. Can't think of what might cause it. I expect the API call to Supabase to return data, but it is producing an error randomly.
Beta Was this translation helpful? Give feedback.
All reactions