Skip to content

TypeError: Converting circular structure to JSON #6355

Open
@zhaoyiming0803

Description

@zhaoyiming0803

Describe the bug

  • axios version: 1.6.8
  • enviroment: node.js
  • node version: v16.14.2
  • npm version: 8.5.0
  • system: mac

Code snippet

const res = await axios.post('https://www.baidu.com', {
      a: 1,
      b: 2
    }, {
      headers: {
        'Content-Type': 'application/json'
      }
    })


### Expected behavior

solve circular error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions