dkfdkdodkms
05/16/2023, 4:07 PMAA
05/16/2023, 4:07 PMdkfdkdodkms
05/16/2023, 4:08 PMAA
05/16/2023, 4:08 PMAA
05/16/2023, 4:09 PMzizi
05/16/2023, 4:13 PMtext
workerd/server/server.c++:2347: error: Uncaught exception: workerd/io/io-context.c++:1261: failed: remote.jsg.Error: The script will never generate a response.
stack: 0 0 0 0 7ff71a146272 0 7ff71a146234 0 0 0
workerd/server/server.c++:2259: error: exception = kj/compat/http.c++:2061: failed: expected !inBody; previous HTTP message body incomplete; can't write more messages
stack: 7ff71a138a6f 7ff71a1d035d 7ff71a205121 7ff71a194056 7ff71a1941fb 7ff719fb2e64 7ff71a1b28ca 0 0
An event handler returned a promise that will be ignored. Event handlers should not have a return value and should not be async functions.
X [ERROR] Uncaught (in response) Error: The script will never generate a response.
dave
05/16/2023, 4:25 PMjohnpyp
05/16/2023, 4:59 PMChaika
05/16/2023, 4:59 PMAA
05/16/2023, 5:00 PMAA
05/16/2023, 5:00 PMChaika
05/16/2023, 5:00 PMAA
05/16/2023, 5:01 PMSkye
05/16/2023, 5:04 PMthis.state
and reuse it finesathoro
05/16/2023, 5:13 PMdave
05/16/2023, 5:16 PMUnsmart | Tech debt
05/16/2023, 5:17 PMUnsmart | Tech debt
05/16/2023, 5:18 PMdkfdkdodkms
05/16/2023, 5:18 PMif (message.ack !== undefined) message.ack(); //because cloudflare...
sathoro
05/16/2023, 5:31 PMmessage.ack?.()
I learned this disgusting code from @SkyeSkye
05/16/2023, 5:36 PMSkye
05/16/2023, 5:36 PMsathoro
05/16/2023, 5:37 PM(message.ack ?? (() => {}))()
sathoro
05/16/2023, 5:38 PMdave
05/16/2023, 5:39 PMSkye
05/16/2023, 5:40 PM