Apify and Crawlee Official Forum

Updated 3 months ago

Throw error that respects maxRequestRetries

Hello,
With RetryRequestError, the request gets retried an infinite times until it succeeds, what error should I throw to respect the maxRequestRetries?
N
P
4 comments
can I kindly ask you to also help me here ?
Hi I believe that there may be only exception for RetryRequestError so if you throw any other non children Error class that should work.

Generally throw new Error('This will increase the request.retryCount') should be working.
ok, thank you
much appreciated !
Add a reply
Sign up and join the conversation on Discord