Why am I getting this error?

Hello everyone. The scheduler is working, but I receive this error in the terminal and also in the execution logs when I deploy. How do I solve this? Thank you! Note: This is an example from the documentation:
const handler: ExportedHandler = {
async scheduled(event, env, ctx) {
console.log("cron processed");
},
};
export default handler;
const handler: ExportedHandler = {
async scheduled(event, env, ctx) {
console.log("cron processed");
},
};
export default handler;
No description
No description
2 Replies
Erisa
Erisa10mo ago
When you access the URL in your browser, the browser also tries to request /favicon.ico which fails because the Worker has no fetch handler and can't handle HTTP requests. You would add a basic fetch handler if you wanted it to go away, but it doesn't impact anything really. In production you can disable all the routes so that bot traffic can't trigger the error.
jusfrei
jusfreiOP10mo ago
I got it, thanks 🤝
Want results from more Discord servers?
Add your server