Closed therpobinski closed 4 years ago
Which hyphens? This snippet doesn't share what params
is.
In the access-token
parameter there is a -
, which hyphens
interferes with stringify
. But removing the -
leaves no problem. The conflict is that in my case it is mandatory to send an access token
with the -
.
For whatever reason, simply restarting my server fixed everything. Sorry to disturb you. I already closed this case. Thank you!
Hi, hope you can help me, I am instantiating
axios
to make a request to an externalAPI
. The problem is that when I use parameters I have to convert them withqs.tringify
and these parameters are separated by hyphens. This returns an error to me:TypeError: Converting circular structure to JSON
. When I remove the hyphens it doesn't cause the problem, but in my case it is necessary to send the parameter with the intermediate hyphens for the parameter to be recognized. This is a snippet of my code.