Skip to content

WebSocketStream reading not reliable #14050

@Officialstrike

Description

@Officialstrike

Issue Details

  • Deno Version:
    • deno 1.19.3 (release, x86_64-pc-windows-msvc)
    • v8 9.9.115.8
    • typescript 4.5.2
  • Operating System:
    • Windows 10 21H1

Expected Behavior

While using async/await there should never be an error claiming module eval is still pending.

Actual Behavior

While using async/await, it will return a module eval error after a while error: Module evaluation is still pending but there are no pending ops or dynamic imports. This situation is often caused by unresolved promises.

To Reproduce

  • Copy the Async/await code
  • run the file using $ deno run --unstable --allow-net <file name here>
  • Wait a couple of seconds, and then it will produce an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlyext/websocketrelated to the ext/websocket cratewebrelated to Web APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions