Closed v1p closed 8 years ago
Just to make sure, what version of scraperjs
are you running?
The onError
promise is deprecated for catch
since v1.0.0.
@ruipgil : My Bad, I was on pre 1.0.0 version, just upgraded it & the .catch() is working fine now. Thanks for prompt reply :) !
I am trying to run the following code :
And I am getting this error :
Without this .catch(), I am not able to catch 'ENOTFOUND' errors.
I saw the Error Handling example, where the .catch() is used but with 'router' (which returns a scraper promise as well). I am not sure if I am following the guide correctly based on the available promise list on the scraper object mentioned in README.
Any pointers that if I am missing something ? (I tried placing .catch() before .scrape() as well)