Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ› Bug Report β€” Runtime APIs: WebSocket.close() logs Request failed due to internal error in Miniflare #1299

Closed
jevakallio opened this issue Oct 10, 2023 · 2 comments Β· Fixed by #1535
Labels
Durable Objects https://developers.cloudflare.com/durable-objects/

Comments

@jevakallio
Copy link

jevakallio commented Oct 10, 2023

When calling socket.close() for a WebSocket connection inside a Durable Object logs the following error to Miniflare console.

workerd/util/symbolizer.c++:98: warning: Not symbolizing stack traces because $LLVM_SYMBOLIZER is not set. To symbolize stack traces, set $LLVM_SYMBOLIZER to the location of the llvm-symbolizer binary. When running tests under bazel, use `--test_env=LLVM_SYMBOLIZER=<path>`.
workerd/server/server.c++:2525: error: Uncaught exception: kj/async.c++:212: disconnected: worker_do_not_log; Request failed due to internal error
stack: 1053b3473 10642ee4b 1064353eb 10642c3bf 10465cd27 104660313 10466014f 104660137 1064956f3 106495a3b 10649419b 106493f6b 1046541af 1a4743f27 106426c90 1053d7cf4 104e32574 104c16b00 104c16f0f 104af12e8 10469eabc 10539bc80 10539f060

For instance:

async webSocketMessage(ws, msg) {
  if (msg === "close me") {
    ws.close();
  }
}

Outputs:

image

The socket closes correctly. We are only seeing this error in Miniflare, not in Workers platform logs, but I'm not sure if that means the error is not occurring, or if it's just not being send to wrangler tail.

@arv
Copy link

arv commented Oct 17, 2023

Any way to silence this log spew?

@MellowYarker
Copy link
Contributor

I've opened a ticket to track internally, we won't be able to prioritize this for a bit. I'll update when someone can take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Durable Objects https://developers.cloudflare.com/durable-objects/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants