-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crawlsite.js Error: TypeError: Converting circular structure to JSON #19
Comments
I could eliminate THAT problem bei using an alternative to JSON.stringify, as described here: https://makandracards.com/makandra/28847-dealing-with-typeerror-converting-circular-structure-to-json-on-javascript Now I "only" have the problem, that node seems not to like the code in general, as it throws a promise-error:
But that's another story... |
When I try to crawl with a DEPTH bigger than 2 I get this error:
Error: TypeError: Converting circular structure to JSON
line: await util.promisify(fs.writeFile)(
./${OUT_DIR}/crawl.json
, JSON.stringify((root), null, ' '));if i use util.inspect, error is gone but seems like the output is invalid json.
The text was updated successfully, but these errors were encountered: