-
Notifications
You must be signed in to change notification settings - Fork 634
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
After migrating our v2 SDK clients to v3, we're seeing this specific error sporadically but frequently when sending a command:
Cannot set property message of which has only a getter
TypeError: Cannot set property message of which has only a getter
at message (webpack://.../node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js:16:18)
at output (webpack://.../node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js:18:10)
at null (webpack://.../node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js:27:32)
All @AWS-SDK dependencies in package.json are pinned to 3.716.0
. We also explicitly declare @smithy/[email protected]
for the ServiceException
type.
Based on the stacktrace, this appears to be a deserialization error. But I'm curious if there may be second problem when @smithy/middleware-serde tries appending a hint to the original error message, which appears to be where the error in the stacktrace above originates.
Regression Issue
- Select this option if this issue appears to be a regression.
SDK version number
@aws-sdk/[email protected], @aws-sdk/[email protected], @aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Browser
Details of the browser/Node.js/ReactNative version
Chrome: 131.0.6778.265 Firefox: 133.0.3 Safari: 18.2
Reproduction Steps
This doesn't reproduce every time but it happens most frequently when sending these commands:
@aws-sdk/client-cloudwatch-logs
DescribeLogGroupsCommand
@aws-sdk/client-efs
DescribeFileSystemsCommand
DescribeAccessPointsCommand
@aws-sdk/client-iam
ListRolesCommand
Observed Behavior
Invoking send
rejects with the error: Cannot set property message of which has only a getter
Expected Behavior
Invoking send
resolves to the API response or rejects with a Smithy ServiceException.
Possible Solution
No response
Additional Information/Context
No response