Somehow DO alarms get called everytime i refresh the static page
Somehow DO alarms get called everytime i refresh the static page
alarm() handler directly somewhere in your DO code?alarm loop. https://screen.bouma.link/r7vljp4v2bMkNb5vJjlTalarm handler and wrapping all it's code in a try/catch. But I don't think I am going to get to the bottom of this without some help RPC receiver does not implement the method [x] error when I should not be. https://community.cloudflare.com/t/smart-placement-breaks-durable-object-rpc/654797
"executionModel": "durableObject", "outcome": "canceled",
wrangler: https://github.com/cloudflare/workers-sdk/await doSomething() which is outside of the class (import function) which does an external async fetch call.if (!res.ok) throw new Error()) then the alarm just dies and no logs appear in console (hence me thinking it wasn't being triggered)await doSomething().catch(e => console.error(e)) and return early, the alarm logs show upalarm() handler should be wrapped in a try-catch.alarm()alarm()alarmalarmRPC receiver does not implement the method [x]usingwranglerawait doSomething()if (!res.ok) throw new Error()await doSomething().catch(e => console.error(e)) this.ctx.blockConcurrencyWhile(async () => {
await this.migrate();
});