mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 13:40:40 +08:00
fix(queue-worker): don't send LLM extract hallucination error to Sentry
This commit is contained in:
parent
0d1b46d476
commit
f7c4cee404
@ -448,11 +448,13 @@ async function processJob(job: Job, token: string) {
|
||||
} catch (error) {
|
||||
Logger.error(`🐂 Job errored ${job.id} - ${error}`);
|
||||
|
||||
if (!(error instanceof Error && error.message.includes("JSON parsing error(s): "))) {
|
||||
Sentry.captureException(error, {
|
||||
data: {
|
||||
job: job.id,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (error instanceof CustomError) {
|
||||
// Here we handle the error, then save the failed job
|
||||
|
Loading…
x
Reference in New Issue
Block a user