Skip to content
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

Open
3 of 4 tasks
mmayors opened this issue Jan 8, 2025 · 0 comments
Open
3 of 4 tasks

TypeError: Cannot set property message of which has only a getter #6783

mmayors opened this issue Jan 8, 2025 · 0 comments
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@mmayors
Copy link

mmayors commented Jan 8, 2025

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:

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

@mmayors mmayors added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant