You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling JSON.stringify(AxiosError.toJSON()) there is a circular reference error :
[TypeError: Converting circular structure to JSON
--> starting at object with constructor 'TLSSocket'
| property 'parser' -> object with constructor 'HTTPParser'
--- property 'socket' closes the circle]
The error does not occurs on all platforms.
To Reproduce
The code building the axios instance is spread amongst several classes with multiple conditions, i will try my best to summarize the configuration while keeping the code readable :
This is definitely still happening in our environment, though our call stack is not the same. I've documented this at #5332, so I think this is still an active problem in some scenarios and a fix should be considered.
Describe the bug
When calling JSON.stringify(AxiosError.toJSON()) there is a circular reference error :
The error does not occurs on all platforms.
To Reproduce
The code building the axios instance is spread amongst several classes with multiple conditions, i will try my best to summarize the configuration while keeping the code readable :
Code snippet
No response
Expected behavior
Calling JSON.stringify() with an axios error does not result in a circular reference error.
Axios Version
1.1.3
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
v16.15.1
OS
OSX 12.6
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: