Certain URLs cause Maximum call stack size exceeded
See original GitHub issueFiling a new issue as I can’t reopen #6
Some URLs cause a RangeError: Maximum call stack size exceeded An example of URL is https://lnkd.in/gVeYnv7
The error message is below (the stack trace is truncated, shoing only the snippet below)
/<redacted>/node_modules/domutils/lib/querying.js:83
function findAll(test, elems){
^
RangeError: Maximum call stack size exceeded
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:83:17)
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >JavaScript RangeError: Maximum Call Stack Size Exceeded
The RangeError: Maximum call stack size exceeded is thrown when a function call is made that exceeds the call stack size. This can...
Read more >Chrome Update caused : Maximum call stack size exceeded.
The problem is that: if i click some times(any action click) in the page, then Chrome will bug for 20 secs, after that,...
Read more >Certain URLs cause Maximum call stack size exceeded #6
It is. https://lnkd.in/gVeYnv7 is an example that causes this error. The stack overflow happens at findAll (node_modules/domutils/lib/querying.
Read more >1.5 RangeError: Maximum call stack size exceeded.
If you're having problems, check if you're putting in the wrong number of arguments in your recursive call. That can cause some headaches....
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
Any update on when this PR will be merged, experiencing the same issue it’s kind of blocking?
This is because the URL is not a text file. To avoid that, I change the code a bit to process only when the response header
content-type
matches/^text\//
, for exampletext/html
.https://github.com/chienwen/url-metadata/commit/f3df2087d8343db88b70266f04cff26e5e40d38f