How are errors handled in batched requests
We're using httpBatchLink, and have noticed that when multiple procedures calls are batched together and one fails, the other procedure calls don't appear to even be attempted (at least according to our otel instrumentation). Is that the way batched procedure calls are expected to behave?
4 Replies
Sounds like your instrumentation is wrong
ok, so the behavior should be more like a
Promise.all
where all the procedure calls are evaluated and then a batched response would come back?More like Promise.allSettled and they all get different codes etc
HTTP RPC Specification | tRPC
Methods Type mapping