Hans
Hans5mo ago

Errors not caught in procedures

I have an application that uses Solid Start @solidjs/start. Most Solid Start apps use the fetchRequestHandler. It seems that the behavior changed recently in that errors thrown inside procedures no longer get caught and will crash server. Environment: - node 20.3.1 - pnpm (I have tried on npm as well) - Solid Start - tRPC fetchRequestHandler Minimal Reproduction Repository https://github.com/hansoksendahl/trpc-not-catch-error
GitHub
GitHub - hansoksendahl/trpc-not-catch-error: This is a minimal repr...
This is a minimal reproduction repository for tPRC using the fetchRequestHandler in Solid Start - hansoksendahl/trpc-not-catch-error
2 Replies
Hans
Hans5mo ago
Github issue link on tRPC repository: https://github.com/trpc/trpc/issues/5576
GitHub
bug: fetchRequestHandler not catching errors · Issue #5576 · trpc/t...
Provide environment information System: OS: macOS 14.3 CPU: (12) arm64 Apple M2 Pro Memory: 102.70 MB / 16.00 GB Shell: 3.6.1 - /usr/local/bin/fish Binaries: Node: 20.3.1 - ~/.local/share/nvm/v20.3...
Hans
Hans5mo ago
It's not a bug it's a feature! I think it would be good to propagate this knowledge into the docs. I'll put updating the docs for the client with a page about error handling on my TODO list.