pete
pete15mo ago

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
Alex / KATT 🐱
Alex / KATT 🐱15mo ago
Sounds like your instrumentation is wrong
pete
peteOP15mo ago
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?
Alex / KATT 🐱
Alex / KATT 🐱15mo ago
More like Promise.allSettled and they all get different codes etc

Did you find this page helpful?