Apify Discord Mirror

Updated 5 months ago

error handling

At a glance

The community member in the post is asking if it's possible to throw errors that would close the page without retrying the request. A community member responds with a solution, suggesting the use of the NonRetryableError class from the 'crawlee' library to throw an error that would not be retried. Another community member simply responds with "Thanks".

Useful resources
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