Apify and Crawlee Official Forum
b
F
A
J
A
1,148
Apify Platform Forum
Crawlee JavaScript Forum
Crawlee for Python Forum
Sign up for Apify Platform here
Star Crawlee on GitHub
Star Crawlee for Python on GitHub
Powered by
Hall
Crawlee JavaScript Forum
0
Join
on Discord
Throw error that respects maxRequestRetries
Crawlee JavaScript Forum
Throw error that respects maxRequestRetries
0
Join
on Discord
N
NeoNomade
last year
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
Share
N
NeoNomade
last year
can I kindly ask you to also help me here ?
P
Pepa J
last year
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.
N
NeoNomade
last year
ok, thank you
N
NeoNomade
last year
much appreciated !
Add a reply
Sign up and join the conversation on Discord
Join
on Discord