Incorrect type for Promise: the Promise did not resolve to 'Response'.

I'm using the itty-router for routing
export default {
fetch: async (request: Request, env: Env, context: Context) => {
context.slack = new Slack(env.SLACK_APP_BOT_TOKEN);
context.waitUntil(router.handle(request, env, context));
},
};
export default {
fetch: async (request: Request, env: Env, context: Context) => {
context.slack = new Slack(env.SLACK_APP_BOT_TOKEN);
context.waitUntil(router.handle(request, env, context));
},
};
1 Reply
kian
kian2y ago
You're not returning any Response there Your fetch handler should return a Response or Promise<Response>
Want results from more Discord servers?
Add your server