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
When I run
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
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-L4When I run
bun src/rpc-example/client.ts on the SolidStart server then I get this output on the server: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?