-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot set property message of which has only a getter #6783
Comments
Could you please post the package.json and minimal code reproduction of
in the comment? Thanks! |
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing. |
the Error message field is writable by default. Do you have any code changing this behavior? |
@kuhe We transpile TypeScript to JS using babel but I don't see anything in our babel config that would alter this behavior. I don't have a reproducible sandbox but I can reproduce this within our app. I added console.log statements to
Some more observations:
|
I started a release for a patch increment of |
there was a delay in publishing the packages but it's out now: https://www.npmjs.com/package/@smithy/middleware-serde/v/4.0.2 |
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: