Apify and Crawlee Official Forum

Updated 3 months ago

error handling

Can we somehow throw errors that are closing the page ?
and not retrying the request?
A
H
N
3 comments
just advanced to level 11! Thanks for your contributions! πŸŽ‰
You can throw a NonRetryableError

Plain Text
import { NonRetryableError } from 'crawlee';

throw NonRetryableError('Error');


https://crawlee.dev/api/core/class/NonRetryableError
Add a reply
Sign up and join the conversation on Discord