The FetchHttpHandler class now by default sets keepalive to true which is causing some of my S3 PUT requests to fail. I believe it is any request over 64KB . Defaulting to false or undefined or only defaulting to true for GET requests may be a better option.
I received the error message below when I first ran into the issue after upgrading all of my @aws-sdk and @smithy packages.
TypeError: Failed to fetch
Call Stack
FetchHttpHandler.handle
../node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js (56:0)
The FetchHttpHandler class now by default sets keepalive to true which is causing some of my S3 PUT requests to fail. I believe it is any request over 64KB . Defaulting to false or undefined or only defaulting to true for GET requests may be a better option.
I received the error message below when I first ran into the issue after upgrading all of my @aws-sdk and @smithy packages.
Here is a link to commit that sets keepalive to true: https://github.com/awslabs/smithy-typescript/commit/4528c37da78962c84f2c9f101503eeab1118d0b8#r129651348
As a temporary fix I reverted to @smithy/fetch-http-handler version 2.1.5
Here is my package.json before reverting