Skip to content

Rejected WebSocket upgrades get an empty reply in vp dev and vp preview #940

Backlog

Description

@hyfdev

When a WebSocket upgrade is rejected with an HTTP response, such as a 401 from onBeforeConnect or from middleware, vp dev and vp preview close the connection without sending it, and curl reports Empty reply from server.

Void returns the 401, and wrangler dev sends it to the client.

The response is dropped by Cloudflare's Vite plugin, which Void's dev and preview servers run on: cloudflare/workers-sdk#15170.

The fix, cloudflare/workers-sdk#17213, was closed automatically because only registered collaborators can open pull requests there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions