Unsmart | Tech debt
05/05/2023, 6:23 PMsathoro
05/05/2023, 6:34 PMUnsmart | Tech debt
05/05/2023, 6:35 PMsathoro
05/05/2023, 6:35 PMdave
05/08/2023, 4:29 AMsathoro
05/08/2023, 6:50 AM--local --persist
and it "just works"Gradyent
05/09/2023, 2:00 PMwrangler dev --local
vs plain wrangler dev
or when deployed?
I am building a WebSocket client for Discord's Gateway API using DOs. Everything works when running locally with --local
, but when I remove --local
or when I deploy to CF, my WebSocket client (created via new WebSocket()
) immediately gets an error
event that says Failed to establish the WebSocket connection: expected server to reply with HTTP status code 101 (switching protocols), but received 401 instead.
.
Discord's Gateway WS protocol doesn't require any authorization to open the WS connection normally (a token gets passed in a message later), and this exact same code works with wrangler dev --local
.Vinicius Zaramella
05/09/2023, 2:05 PMHardAtWork
05/09/2023, 2:27 PMblockConcurrencyWhile
to prevent the DO from receiving any further eventsckoeninger
05/09/2023, 3:54 PMVinicius Zaramella
05/09/2023, 5:05 PMawait sleep(10000)
to test.
sleep here being a promise over a setTimeout
right, so no parallelism, but I still can have concurrency right? Sry I used the wrong term.Vinicius Zaramella
05/09/2023, 5:07 PMVinicius Zaramella
05/09/2023, 5:08 PMblockConcurrencyWhile
that @HardAtWork suggested. But I guess that is a bug in miniflare (?)sathoro
05/09/2023, 6:34 PMjohn.spurlock
05/09/2023, 9:43 PMjohn.spurlock
05/09/2023, 9:44 PMUnsmart | Tech debt
05/09/2023, 9:46 PMDani Foldi
05/09/2023, 9:47 PMjohn.spurlock
05/09/2023, 9:48 PMError: internal error
john.spurlock
05/09/2023, 9:48 PMError: Cannot resolve Durable Object due to transient issue on remote node.
Unsmart | Tech debt
05/09/2023, 9:49 PMDani Foldi
05/09/2023, 9:49 PMUnsmart | Tech debt
05/09/2023, 9:50 PMjohn.spurlock
05/09/2023, 9:50 PMError: Internal error in Durable Object storage write caused object to be reset.
john.spurlock
05/09/2023, 9:50 PMjohn.spurlock
05/09/2023, 9:52 PM51571a93b143b2d4d0836f765381b5c3f3f29bca9035a063925d4ce861fd5248
is the DO id if any cf folks are aroundDani Foldi
05/09/2023, 9:53 PMjohn.spurlock
05/09/2023, 9:54 PMDani Foldi
05/09/2023, 9:54 PM