Trouble with RPC Request Hanging in SolidStart Project

Hello. I am trying to add RPC to my SolidStart project.

1. This is the RPC Example from the docs including the middleware, which works: https://gist.github.com/Industrial/89eb994847bd3652ff1ce6ce8f95e28a
2. This is using the SolidStart API route and as you can see I'm using code from the ~/rpc-example/request file (which is defined in the first gist above ^): https://gist.github.com/Industrial/544a44f53da3ad12d48e932ddd570a65#file-1-server-ts-L4

When I run bun src/rpc-example/client.ts on the SolidStart server then I get this output on the server:
RPC POST
timestamp=2025-06-04T17:03:45.093Z level=INFO fiber=#6 message=UserRepository
RPC POST handler [Function (anonymous)]
RPC POST response Response {
  status: 200,
  statusText: '',
  headers: Headers { 'content-type': 'application/ndjson' },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: false },
  bodyUsed: false,
  ok: true,
  redirected: false,
  type: 'default',
  url: ''
}


Seems ok right? It's returning a complete response object with a 200 and a body and type ndjson.

But on the client the request hangs and is never received. What did I do wrong? Did I define RpcWebHandler correctly?
Was this page helpful?