cloudflare / workerd

The JavaScript / Wasm runtime that powers Cloudflare Workers
https://blog.cloudflare.com/workerd-open-source-workers-runtime/
Apache License 2.0
6.29k stars 309 forks source link

🐛 Bug Report — Runtime APIs - Workered internal error terminates websocket connections in wrangler/partykit server #3119

Open shadrach-tayo opened 1 week ago

shadrach-tayo commented 1 week ago

I'm using wrangler to develop a partykit server on workers, This works well on my host machine (Mac Os) when I run the dev command wrangler dev --port 5445 --host 0.0.0.0 but when packaged in a container I run an issue where the websocket connections are lost due to an internal error in workerd.

Below are my logs

✘ [ERROR] Error in AutomergeServer:2Y2jGRQqQixzY4jgbwTPkCFKrEjQ fetch: Error: Network connection lost.

      at async AutomergeServer.onConnect (file:///app/src/Automerge.ts:50:24)
      at async AutomergeServer.fetch (file:///app/node_modules/partyserver/src/index.ts:263:9) {
    retryable: true
  }
  workerd/server/server.c++:3613: error: Uncaught exception: kj/async.c++:211: disconnected: worker_do_not_log; Request failed due to internal error
  stack: /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@4095933 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@58d7bc7 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@40bddb3 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@58d7abb /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@58d5b97 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@58db36b /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@58d1da3 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@2fd7b47 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@5935a6b /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@5935c0b /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@5933fd7 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@5933d67 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@2fc596b /lib/aarch64-linux-gnu/libc.so.6@2777f /lib/aarch64-linux-gnu/libc.so.6@27857 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@58cae00 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@40b27c4 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@39208eb /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@371a57c /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@371a9a3 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@58d3827 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@35962c0 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@3596bd0 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@302de7b /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@40c1b93 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@40c2be7 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@40c35d7 /app/node_modules/@cloudflare/workerd-linux-arm64/bin/workerd@408edc0
Screenshot 2024-11-14 at 8 55 27 PM