Skip to content

fix(miniflare): skip named entrypoint for stream binding in remote mode#13476

Merged
petebacondarwin merged 2 commits intocloudflare:mainfrom
roerohan:roerohan/stream-remote-binding
Apr 15, 2026
Merged

fix(miniflare): skip named entrypoint for stream binding in remote mode#13476
petebacondarwin merged 2 commits intocloudflare:mainfrom
roerohan:roerohan/stream-remote-binding

Conversation

@roerohan
Copy link
Copy Markdown
Member

@roerohan roerohan commented Apr 15, 2026

Summary

  • Fix wrangler dev crash when using a Stream binding with remote: true

Details

In remote mode, the stream binding is backed by a generic proxy worker that forwards RPC calls to Cloudflare's edge. That proxy worker only has a default export, but the plugin was telling workerd to look for a named export called "StreamBinding" — which doesn't exist on it, causing workerd to fail with:

Worker "core:user:..."'s binding "STREAM" refers to service "stream:STREAM:remote-..."
with a named entrypoint "StreamBinding", but "stream:STREAM:remote-..." has no such named entrypoint.

The fix skips the named entrypoint in remote mode so workerd uses the default export instead, which correctly proxies all method calls to the remote service. This is the same issue that was fixed for the Flagship binding in #13472.


  • Tests
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: Bug fix only, no user-facing API change.

A picture of a cute animal (not mandatory, but encouraged)


Open with Devin

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 15, 2026

🦋 Changeset detected

Latest commit: a0d6d0d

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Apr 15, 2026
@workers-devprod workers-devprod requested review from a team and vicb and removed request for a team April 15, 2026 06:11
@workers-devprod
Copy link
Copy Markdown
Contributor

workers-devprod commented Apr 15, 2026

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 15, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@13476

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@13476

miniflare

npm i https://pkg.pr.new/miniflare@13476

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@13476

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@13476

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@13476

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@13476

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@13476

wrangler

npm i https://pkg.pr.new/wrangler@13476

commit: a0d6d0d

Copy link
Copy Markdown
Contributor

@workers-devprod workers-devprod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Apr 15, 2026
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@petebacondarwin petebacondarwin force-pushed the roerohan/stream-remote-binding branch from 07f3e7c to a0d6d0d Compare April 15, 2026 07:23
@petebacondarwin petebacondarwin merged commit d5ff5a4 into cloudflare:main Apr 15, 2026
56 of 58 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants