error handling

Can we somehow throw errors that are closing the page ? and not retrying the request?
3 Replies
MEE6
MEE6•2y ago
@NeoNomade just advanced to level 11! Thanks for your contributions! 🎉
afraid-scarlet
afraid-scarlet•2y ago
You can throw a NonRetryableError
import { NonRetryableError } from 'crawlee';

throw NonRetryableError('Error');
import { NonRetryableError } from 'crawlee';

throw NonRetryableError('Error');
https://crawlee.dev/api/core/class/NonRetryableError
NeoNomade
NeoNomadeOP•2y ago
Thanks

Did you find this page helpful?