Skip to content

🐛 Bug Report — WebSocket Client Connection Hangs #11006

@preschian

Description

@preschian

What versions & operating system are you using?

wrangler@^4.42.2

Please provide a link to a minimal reproduction

https://github.com/preschian/test-workers-assethub-kusama

Describe the Bug

WebSocket Client Connection Hangs in Cloudflare Workers

Summary

WebSocket client connections hang indefinitely in Cloudflare Workers when connecting to certain endpoints (Kusama Asset Hub), while others work fine (Polkadot Asset Hub), despite using identical code and both endpoints being publicly accessible.

Important: This code has been working fine for years, but suddenly started hanging around October 6th, 2025. No changes were made to our code - this appears to be a Workers runtime regression.

Reproduction

git clone https://github.com/preschian/test-workers-assethub-kusama
cd test-workers-assethub-kusama
bun install
bun run dev

Then test:

  • curl http://localhost:8787/polkadot ✅ Works fine
  • curl http://localhost:8787/kusama ❌ Hangs indefinitely

Expected vs Actual

  • Expected: Connection succeeds or throws clear error
  • Actual: Hangs indefinitely with no error, no timeout, no response

Question

Why does one WebSocket endpoint work while structurally identical ones hang? Both Polkadot and Kusama use the same technology (Substrate framework).


Repository: https://github.com/preschian/test-workers-assethub-kusama

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't working

    Type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions