[TRI-2048] Better handle `fetch` throwing errors in our ApiClient
ericallam opened this issue · comments
As you can see in the code below, we aren't handling any thrown errors by fetch:
This can lead to issues when the fetch times out and throws an error. We should fix this and also investigate which other errors can be thrown and handle those with retries (if it makes sense).