Here's simple repro code: ```js export default { async scheduled(event, env, ctx) { ctx

Here's simple repro code:

export default {
    async scheduled(event, env, ctx) {
        ctx.waitUntil(task());
    },
};

function task() {
    fetch(
        'https://canary.discord.com/api/webhooks/:id/:token',
        {
            method: 'POST',
            headers: {
                'Content-Type': 'application/json',
            },
            body: JSON.stringify({
                content: 'test',
            }),
        }
    );
}


wrangler.toml
:
name = ...
main = ...
compatibility_date = ...

[triggers]
crons = [ "* * * * *" ]
Was this page helpful?