Skip to content

IntegTest Assertions fails while logging response #27114

Closed
@mrgrain

Description

See the integ test in
aws-s3-deployment/test/integ.bucket-deployment-substitution.ts for an example.

The assertions handler will attempt to log the response of the made API request. In this case it is S3.getObject which includes a Blob in the Body field.

When logging the response, the handler uses JSON.stringify() which fails with to the following error:

Converting circular structure to JSON
    --> starting at object with constructor 'TLSSocket'
    |     property 'parser' -> object with constructor 'HTTPParser'
    --- property 'socket' closes the circle (RequestId: 50c1b6cd-47d2-494f-baf1-d22646cd4e5f)

This might also conceal an issue with returning blob data from the ApiCall, but not sure yet.

Metadata

Assignees

Labels

@aws-cdk/integ-testsbugThis issue is a bug.node18-upgradeAny work (bug, feature) related to Node 18 upgradesdk-v3-upgradeTag issues that are associated to SDK V3 upgrade. Not limited to CR usage of SDK only.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions