Skip to content

Uncaught TypeError TypeError: Converting circular structure to JSON #7459

@PauloPaiva276

Description

@PauloPaiva276

Checkboxes for prior research

Describe the bug

When trying to connect to a AWS PCA, if there is missing authorization, the result appears like the following:

Uncaught TypeError TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'IncomingMessage'
    |     property 'req' -> object with constructor 'ClientRequest'
    --- property 'res' closes the circle
    at eval (repl:1:6)

With the version 3.721.0 it worked but with the following ones it started to bug.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/package-name@version, ...

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

"@aws-sdk/client-acm-pca": "3.901.0"

Reproduction Steps

  1. Create an User with missing authorizations;
  2. Try to issue an AWS certificate;
  3. While debugging, get an error like the following:
Uncaught TypeError TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'IncomingMessage'
    |     property 'req' -> object with constructor 'ClientRequest'
    --- property 'res' closes the circle
    at eval (repl:1:6)
  1. Notice that it comes from JSON.stringify(result), line 37 from "node_modules/@smithy/util-waiter/dist-cjs/index.js".

Observed Behavior

It appears an error like the following:

Uncaught TypeError TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'IncomingMessage'
    |     property 'req' -> object with constructor 'ClientRequest'
    --- property 'res' closes the circle
    at eval (repl:1:6)

Expected Behavior

It should appear a normal String error message.

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p2This is a standard priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions