waitUntil illigal invocation
I was planning to use waitUntil, but as soon it runs the worker die with this error:
wrangler version 3.2.0 and 3.3.0. In this example I'm just running a resolve, running anything else the promise will run but the worker will die anyway
am I doing something wrong?
2 Replies
Ok I don't know if I'm missing something, but this works
for anyone else stumbling upon this issue in the future (like me :3), i had a similar issue using trpc in sveltekit where i was adding the function to the trpc context and it was failing with Illegal invocation:
assigning a function that calls waitUntil instead solved this issue for me: