-
Notifications
You must be signed in to change notification settings - Fork 4.5k
IntegTest Assertions fails while logging response #27114
Copy link
Copy link
Closed
Labels
@aws-cdk/integ-testsbugThis issue is a bug.This issue is a bug.node18-upgradeAny work (bug, feature) related to Node 18 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.Tag issues that are associated to SDK V3 upgrade. Not limited to CR usage of SDK only.
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/integ-testsbugThis issue is a bug.This issue is a bug.node18-upgradeAny work (bug, feature) related to Node 18 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.Tag issues that are associated to SDK V3 upgrade. Not limited to CR usage of SDK only.