re-enqueue request without throwing error
# crawlee-js
n
Is there any method of doing a request again without throwing an error but also respecting the maximum retries ?
i
Yes, there is a method you can go by, you can retry a request on failure while respecting a maximum retry limit
n
And what method would that be ?
c
Hi @NeoNomade | Scraping hellhound If you just want to suppress the error message it is easier to hack it like this:
Copy code
typescript
const originalErrorLog = crawler.log.error.bind(crawler.log);
    crawler.log.error = (message: string, data?: Record<string, unknown> | null) => {
        if (message.includes(HIDE_MESSAGE_WATERMARK)) {
            return;
        }
        originalErrorLog(message, data);
    };
Other option is to enqueue a new request and update its retryCount and uniqueKey