mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Nick: changed email from hello to help
Some checks are pending
Deploy Images to GHCR / push-app-image (push) Waiting to run
Some checks are pending
Deploy Images to GHCR / push-app-image (push) Waiting to run
This commit is contained in:
parent
0310cd2afa
commit
bd928b1512
|
@ -75,7 +75,7 @@ export async function crawlController(req: Request, res: Response) {
|
||||||
await checkTeamCredits(chunk, team_id, limitCheck);
|
await checkTeamCredits(chunk, team_id, limitCheck);
|
||||||
|
|
||||||
if (!creditsCheckSuccess) {
|
if (!creditsCheckSuccess) {
|
||||||
return res.status(402).json({ error: "Insufficient credits. You may be requesting with a higher limit than the amount of credits you have left. If not, upgrade your plan at https://firecrawl.dev/pricing or contact us at hello@firecrawl.com" });
|
return res.status(402).json({ error: "Insufficient credits. You may be requesting with a higher limit than the amount of credits you have left. If not, upgrade your plan at https://firecrawl.dev/pricing or contact us at help@firecrawl.com" });
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: need to do this to v1
|
// TODO: need to do this to v1
|
||||||
|
|
|
@ -209,7 +209,7 @@ export async function scrapeController(req: Request, res: Response) {
|
||||||
earlyReturn = true;
|
earlyReturn = true;
|
||||||
return res.status(500).json({
|
return res.status(500).json({
|
||||||
error:
|
error:
|
||||||
"Error checking team credits. Please contact hello@firecrawl.com for help.",
|
"Error checking team credits. Please contact help@firecrawl.com for help.",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ export async function crawlStatusWSController(ws: WebSocket, req: RequestWithAut
|
||||||
logger.error("Error occurred in WebSocket! (" + req.path + ") -- ID " + id + " -- " + verbose);
|
logger.error("Error occurred in WebSocket! (" + req.path + ") -- ID " + id + " -- " + verbose);
|
||||||
return close(ws, 1011, {
|
return close(ws, 1011, {
|
||||||
type: "error",
|
type: "error",
|
||||||
error: "An unexpected error occurred. Please contact hello@firecrawl.com for help. Your exception ID is " + id
|
error: "An unexpected error occurred. Please contact help@firecrawl.com for help. Your exception ID is " + id
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,7 +207,7 @@ app.use((err: unknown, req: Request<{}, ErrorResponse, undefined>, res: Response
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.error("Error occurred in request! (" + req.path + ") -- ID " + id + " -- " + verbose);
|
logger.error("Error occurred in request! (" + req.path + ") -- ID " + id + " -- " + verbose);
|
||||||
res.status(500).json({ success: false, error: "An unexpected error occurred. Please contact hello@firecrawl.com for help. Your exception ID is " + id });
|
res.status(500).json({ success: false, error: "An unexpected error occurred. Please contact help@firecrawl.com for help. Your exception ID is " + id });
|
||||||
});
|
});
|
||||||
|
|
||||||
logger.info(`Worker ${process.pid} started`);
|
logger.info(`Worker ${process.pid} started`);
|
||||||
|
|
|
@ -23,7 +23,7 @@ const emailTemplates: Record<
|
||||||
},
|
},
|
||||||
[NotificationType.RATE_LIMIT_REACHED]: {
|
[NotificationType.RATE_LIMIT_REACHED]: {
|
||||||
subject: "Rate Limit Reached - Firecrawl",
|
subject: "Rate Limit Reached - Firecrawl",
|
||||||
html: "Hey there,<br/><p>You've hit one of the Firecrawl endpoint's rate limit! Take a breather and try again in a few moments. If you need higher rate limits, consider upgrading your plan. Check out our <a href='https://firecrawl.dev/pricing'>pricing page</a> for more info.</p><p>If you have any questions, feel free to reach out to us at <a href='mailto:hello@firecrawl.com'>hello@firecrawl.com</a></p><br/>Thanks,<br/>Firecrawl Team<br/><br/>Ps. this email is only sent once every 7 days if you reach a rate limit.",
|
html: "Hey there,<br/><p>You've hit one of the Firecrawl endpoint's rate limit! Take a breather and try again in a few moments. If you need higher rate limits, consider upgrading your plan. Check out our <a href='https://firecrawl.dev/pricing'>pricing page</a> for more info.</p><p>If you have any questions, feel free to reach out to us at <a href='mailto:help@firecrawl.com'>help@firecrawl.com</a></p><br/>Thanks,<br/>Firecrawl Team<br/><br/>Ps. this email is only sent once every 7 days if you reach a rate limit.",
|
||||||
},
|
},
|
||||||
[NotificationType.AUTO_RECHARGE_SUCCESS]: {
|
[NotificationType.AUTO_RECHARGE_SUCCESS]: {
|
||||||
subject: "Auto recharge successful - Firecrawl",
|
subject: "Auto recharge successful - Firecrawl",
|
||||||
|
@ -31,7 +31,7 @@ const emailTemplates: Record<
|
||||||
},
|
},
|
||||||
[NotificationType.AUTO_RECHARGE_FAILED]: {
|
[NotificationType.AUTO_RECHARGE_FAILED]: {
|
||||||
subject: "Auto recharge failed - Firecrawl",
|
subject: "Auto recharge failed - Firecrawl",
|
||||||
html: "Hey there,<br/><p>Your auto recharge failed. Please try again manually. If the issue persists, please reach out to us at <a href='mailto:hello@firecrawl.com'>hello@firecrawl.com</a></p><br/>Thanks,<br/>Firecrawl Team<br/>",
|
html: "Hey there,<br/><p>Your auto recharge failed. Please try again manually. If the issue persists, please reach out to us at <a href='mailto:help@firecrawl.com'>help@firecrawl.com</a></p><br/>Thanks,<br/>Firecrawl Team<br/>",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ export async function sendEmailNotification(
|
||||||
const { data, error } = await resend.emails.send({
|
const { data, error } = await resend.emails.send({
|
||||||
from: "Firecrawl <firecrawl@getmendableai.com>",
|
from: "Firecrawl <firecrawl@getmendableai.com>",
|
||||||
to: [email],
|
to: [email],
|
||||||
reply_to: "hello@firecrawl.com",
|
reply_to: "help@firecrawl.com",
|
||||||
subject: emailTemplates[notificationType].subject,
|
subject: emailTemplates[notificationType].subject,
|
||||||
html: emailTemplates[notificationType].html,
|
html: emailTemplates[notificationType].html,
|
||||||
});
|
});
|
||||||
|
|
|
@ -262,7 +262,7 @@ async function processJob(job: Job & { id: string }, token: string) {
|
||||||
document: null,
|
document: null,
|
||||||
project_id: job.data.project_id,
|
project_id: job.data.project_id,
|
||||||
error:
|
error:
|
||||||
"URL is blocked. Suspecious activity detected. Please contact hello@firecrawl.com if you believe this is an error.",
|
"URL is blocked. Suspecious activity detected. Please contact help@firecrawl.com if you believe this is an error.",
|
||||||
};
|
};
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user