Skip to content

Fix ConnectTest.ConnectAsync_PassNoSubProtocol_ServerRequires_ThrowsWebSocketException on NodeJS #63681

Closed

Description

@maraf

Running test on NodeJS causes uncaught exception

  Error: Server sent a subprotocol but none was requested
      at ClientRequest.<anonymous> (C:\Development\dotnet\runtime\artifacts\bin\System.Net.WebSockets.Client.Tests\net7.0-Browser-Debug\browser-wasm\AppBundle\node_modules\ws\lib\websocket.js:855:7)
      at ClientRequest.emit (node:events:390:28)
      at Socket.socketOnData (node:_http_client:527:11)
      at Socket.emit (node:events:390:28)
      at addChunk (node:internal/streams/readable:324:12)
      at readableAddChunk (node:internal/streams/readable:297:9)
      at Socket.Readable.push (node:internal/streams/readable:234:10)
      at TCP.onStreamRead (node:internal/stream_base_commons:199:23)
      
  Emitted 'error' event on WebSocket instance at:
      at Object.onceWrapper (node:events:510:26)
      at Socket.emit (node:events:390:28)
      at emitErrorNT (node:internal/streams/destroy:164:8)
      at emitErrorCloseNT (node:internal/streams/destroy:129:3)
      at processTicksAndRejections (node:internal/process/task_queues:83:21)

Activity

  1. ghost added
    untriaged
    on Jan 12, 2022
  2. added this to the 7.0.0 milestone on Jan 14, 2022
  3. removed
    untriaged
    on Jan 14, 2022
  4. ghost added
    in-pr
    on May 26, 2022
  5. ghost removed
    in-pr
    on May 30, 2022
  6. ghost locked as resolved and limited conversation to collaborators on Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Infrastructure-mono

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions