Open MentalGear opened 1 month ago
Hi @MentalGear - I just asked the same as you in the Supabase docs AI but I get a different response:
The Supabase Client does not have a built-in retry mechanism. However, you can use a third-party library like axios-retry to add retry functionality to your requests.
With axios-retry, you can configure the number of retries and the retry delay. By default, axios-retry retries requests that fail due to network errors or 5xx server responses.
Improve documentation
Does the client auto retry if a call fails? Use case: Insert record into files table after a storage operation. If the
insert record
fails, the file is 'lost' in the storage.The docs give no indication, but Supabase AI mentions wrongly:
retry: {