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
We are using cheerio npm package version ^1.0.0-rc.12 in our application to parse xml content. cheerio internally uses domutils version ^3.0.1.
When we tried to parse specific xml content using load() function of cheerio, load() function then internally calls find() of domutils where we observed following exception
RangeError: Maximum call stack size exceeded
at Object.get [as isTag] (/home/xyz/cheerio-poc/node_modules/domhandler/lib/index.js:6:47)
at Object.get [as isTag] (/home/xyz/cheerio-poc/node_modules/domutils/lib/index.js:27:100)
at /home/xyz/cheerio-poc/node_modules/cheerio-select/lib/index.js:293:60
at find (/home/xyz/cheerio-poc/node_modules/domutils/lib/querying.js:37:13)
at find (/home/xyz/cheerio-poc/node_modules/domutils/lib/querying.js:43:28)
at find (/home/xyz/cheerio-poc/node_modules/domutils/lib/querying.js:43:28)
at find (/home/xyz/cheerio-poc/node_modules/domutils/lib/querying.js:43:28)
at find (/home/xyz/cheerio-poc/node_modules/domutils/lib/querying.js:43:28)
at find (/home/xyz/cheerio-poc/node_modules/domutils/lib/querying.js:43:28)
at find (/home/xyz/cheerio-poc/node_modules/domutils/lib/querying.js:43:28)
We are using
cheerio
npm package version^1.0.0-rc.12
in our application to parse xml content.cheerio
internally usesdomutils
version^3.0.1
.When we tried to parse specific xml content using
load()
function ofcheerio
,load()
function then internally callsfind()
ofdomutils
where we observed following exceptionAttaching sample code for your reference.
cheerio-poc.zip
The text was updated successfully, but these errors were encountered: