-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
I use aws4fetch.esm.js (v1.0.18) in a Cloudflare worker to access DynamoDB. Occasionally I see the following exception thrown from the AWSClient.fetch method:
Error: Network connection lost.
at async AwsClient.fetch (aws4fetch.esm.js:69:19)
The problem is that exceptions thrown by await fetched in AWSClient.fetch short-circuit the retry loop. Short-circuiting the retry loop is fine for exceptions caused by a bad request, but it's not good for exceptions thrown due to transient network errors. Perhaps network exceptions could be caught in AWSClient.fetch so the retry loop can continue in those cases?
terozio
Metadata
Metadata
Assignees
Labels
No labels