Replies: 1 comment 1 reply
-
Do you test with failedRequestHandler? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am using Apify, but the question applies to Crawlee as well.
Sometimes when we crawl using Puppeteer, we get the following errors from the server. The server does not return any HTTP response in these cases.
ERR_CONNECTION_CLOSED
ERR_CONNECTION_RESET
ERR_CONNECTION_REFUSED
ERR_CONNECTION_ABORTED
ERR_CONNECTION_FAILED
ERR_EMPTY_RESPONSE
ERR_ABORTED
exhaustive list of errors are from here: https://source.chromium.org/chromium/chromium/src/+/main:net/base/net_error_list.h
When we get such errors, we would like a hook to pause the crawler for a while and resume after a certain time.
I have tried adding preNavigationHooks like so but to no avail.
Has anyone ran into similar issues on Apify/Crawlee? Does the errorHandler in crawlee work for these errors? Thanks in advance.
*edited to add ERR_ABORTED
Beta Was this translation helpful? Give feedback.
All reactions