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
{{ message }}
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.
The crawler crawler crashes because of this uncaught exception:
TypeError: invalid input
at URI.p.href (***\node_modules\urijs\src\URI.js:1183:13)
at new URI (***\node_modules\urijs\src\URI.js:70:10)
at URI (***\node_modules\urijs\src\URI.js:46:16)
at ***\node_modules\simplecrawler\lib\crawler.js:1737:28
at FetchQueue.oldestUnfetchedItem (***\node_modules\simplecrawler\lib\queue.js:250:13)
at Crawler.crawl (***\node_modules\simplecrawler\lib\crawler.js:1729:19)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
What happened?
The crawler crawler crashes because of this uncaught exception:
The error happens here:
https://github.com/cgiffard/node-simplecrawler/blob/v1.1.4/lib/crawler.js#L1738
What should have happened?
The crawler should have skipped the faulty URL without crashing.
Steps to reproduce the problem
Crawl any page that has a faulty href such as
<a href="http://">http://</a>
or use this snippet to reproduce the problem:
Would you filter bad URLs in Crawler.cleanExpandResources() ?
The text was updated successfully, but these errors were encountered: