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?
3 Replies
NeoNomade
NeoNomadeOP2y ago
@Pepa J can I kindly ask you to also help me here ?
Pepa J
Pepa J2y ago
Hi @NeoNomade 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.
NeoNomade
NeoNomadeOP2y ago
ok, thank you much appreciated !

Did you find this page helpful?