Stack overflow error when overwriting a default `agent` option
See original GitHub issueThere is an error when defining an axios instance with a default agent
option and then creating a request with a specific agent
option.
Axios merges (deep) request and default options, them causing this error (because the agent object, when any request has been made, contains circular references):
RangeError: Maximum call stack size exceeded
at merge (<original-path>/node_modules/axios/lib/utils.js:245:3)
at assignValue (<original-path>/node_modules/axios/lib/utils.js:248:21)
at forEach (<original-path>/node_modules/axios/lib/utils.js:221:12)
at merge (<original-path>/node_modules/axios/lib/utils.js:255:5)
at assignValue (<original-path>/node_modules/axios/lib/utils.js:248:21)
at forEach (<original-path>/node_modules/axios/lib/utils.js:221:12)
at merge (<original-path>/node_modules/axios/lib/utils.js:255:5)
at assignValue (<original-path>/node_modules/axios/lib/utils.js:248:21)
at forEach (<original-path>/node_modules/axios/lib/utils.js:221:12)
at merge (<original-path>/node_modules/axios/lib/utils.js:255:5)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Overwriting or Recreating Variables in Power Virtual Agent
Power Virtual Agents has a concept called bot variables. That might be useful in your scenario. Over here is a Microsoft doc about...
Read more >How to avoid StackOverflow error during build process ... - IBM
This error is thrown due to insufficient default thread stack size for the build process to complete successfully.
Read more >Java Agent Stack Overflow Error - TechDocs - Broadcom Inc.
A transaction fails on a monitored application and a StackOverflowError message is recorded in the application server log. Solution. The agent adds instructions ......
Read more >Why do I get a "stack overflow" error when running my... - Intel
If you get a "stack overflow" run-time error, you must tell the compiler used to compile the Jam Player source code how large...
Read more >dpkg error: "trying to overwrite file, which is also in..."
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up. ... Stack...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nickuraltsev When will this fix be available in a release?
遇到了相同的问题