#Websockets + Bun + Cloud Run = Suddenly 1006 Error for every web socket stream

1 messages · Page 1 of 1 (latest)

tranquil seal
#

2024-04-23 08:42:20.927 CEST CONNECTING TO KRAKEN!
2024-04-23 08:42:20.954 CEST KRAKEN WS CLOSED => [reason=Failed to connect, code=1006]
All of this works well and as intended until it doesn't. have anyone else encountered this issue?
What I can observe is that every single WebSocket stream object I have suddenly start throwing 1006 errors.

Everything works as intended locally (Mac).

// docker file is like this:

FROM oven/bun:latest

COPY . .

RUN bun install

run the app

USER bun
ENTRYPOINT [ "bun", "run", "index.ts" ]

and CPU is always allocated inside of google cloud.

tranquil seal
#

So I fixed it by swithing over to node.