question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stack overflow error when overwriting a default `agent` option

See original GitHub issue

There 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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
lmittmanncommented, Apr 26, 2018

@nickuraltsev When will this fix be available in a release?

1reaction
rocky-191commented, Aug 20, 2019

遇到了相同的问题

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found