You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Checkboxes for prior research
Describe the bug
After migrating our v2 SDK clients to v3, we're seeing this specific error sporadically but frequently when sending a command:
All @AWS-SDK dependencies in package.json are pinned to
3.716.0
. We also explicitly declare@smithy/[email protected]
for theServiceException
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
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
The text was updated successfully, but these errors were encountered: