Skip to content

fix(cluster): use layerProtocolHttpRouter in HttpRunner#5962

Closed
aniravi24 wants to merge 1 commit intoEffect-TS:mainfrom
aniravi24:fix-http-runner-router
Closed

fix(cluster): use layerProtocolHttpRouter in HttpRunner#5962
aniravi24 wants to merge 1 commit intoEffect-TS:mainfrom
aniravi24:fix-http-runner-router

Conversation

@aniravi24
Copy link
Copy Markdown
Contributor

layerHttpOptions and layerWebsocketOptions were using layerProtocolHttp and layerProtocolWebsocket which create their own internal routers via routerTag.Live, ignoring the router from HttpLayerRouter.serve. This caused RPC routes to not be registered on the served router, resulting in 404 errors for inter-runner communication.

The fix is to use layerProtocolHttpRouter and layerProtocolWebsocketRouter which properly use the router from context.

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Related

…t-TS#5918

layerHttpOptions and layerWebsocketOptions were using layerProtocolHttp
and layerProtocolWebsocket which create their own internal routers via
routerTag.Live, ignoring the router from HttpLayerRouter.serve. This
caused RPC routes to not be registered on the served router, resulting
in 404 errors for inter-runner communication.

The fix is to use layerProtocolHttpRouter and layerProtocolWebsocketRouter
which properly use the router from context.
@aniravi24 aniravi24 requested a review from tim-smart as a code owner January 7, 2026 07:52
@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog Jan 7, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 7, 2026

🦋 Changeset detected

Latest commit: e3c2f4c

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

This PR includes changesets to release 5 packages
Name Type
@effect/cluster Patch
@effect/platform-bun Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/sql-clickhouse Patch

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

@tim-smart
Copy link
Copy Markdown
Contributor

cluster doesn't use HttpLayerRouter as it is an experimental module. In effect 4 this will change

@tim-smart tim-smart closed this Jan 19, 2026
@github-project-automation github-project-automation Bot moved this from Discussion Ongoing to Done in PR Backlog Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

layerHttpOptions should use layerProtocolHttpRouter

2 participants