deno icon indicating copy to clipboard operation
deno copied to clipboard

[ERR_HTTP2_SOCKET_UNBOUND]: The socket has been disconnected from the Http2Session

Open butadpj opened this issue 1 year ago • 0 comments

Version: Deno 2.0.2 (stable, release, aarch64-apple-darwin)

I am working with Pulumi's Automation API and whenever I call stack.preview() or stack.up() which relies heavily on gRPC, I'm getting this error:

>>> Error in Http2Server Error [ERR_HTTP2_SOCKET_UNBOUND]: The socket has been disconnected from the Http2Session
    at Object.get (node:http2:92:19)
    at Http2Server.<anonymous> ([project's path]/node_modules/@grpc/grpc-js/src/server.ts:1638:25)
    at Http2Server.emit (ext:deno_node/_events.mjs:393:28)
    at Http2Server.<anonymous> (node:http2:1214:14)
    at Http2Server.emit (ext:deno_node/_events.mjs:393:28)
    at TCP._onconnection [as onconnection] (node:net:1127:8)
    at TCP.#accept (ext:deno_node/internal_binding/tcp_wrap.ts:358:12)
    at eventLoopTick (ext:core/01_core.js:175:7) {
  code: "ERR_HTTP2_SOCKET_UNBOUND",
  name: "Error"
}

This is the error Im getting from Pulumi when executing stack.preview():

error: failed to discover plugin requirements: connection error: desc = "error reading server preface: read tcp 127.0.0.1:55811->127.0.0.1:55807: use of closed network connection"
Previewing update (dev)
  • as you notice, the error seems like a result of Deno's issue with gRPC (socket being disconnected from the Http2Session)

butadpj avatar Oct 20 '24 20:10 butadpj