Improve errorHandler
#947
Labels
feature
Issues that represent new features or improvements to existing features.
errorHandler
#947
Describe the feature
Allow
errorHandler
to work with the full crawling context. For example, make sure that thepage
is not closed beforeerrorHandler
finishes. We should also prevent errors thrown from the function from crashing the crawler and just log them.Motivation
It is useful to save debugging data or do some final processing in the
errorHandler
. Now that we createdCrawlingContext
,page
is available inerrorHandler
, but most of the time, it would be already closing/closed and any page operations will fail. This will most likely crash the crawler.Constraints
If we catch the errors coming from the function, there should not be any. But let's double check whether there aren't any other issues.
The text was updated successfully, but these errors were encountered: