{"by_status":{"unconfirmed":[{"id":"61c690b0-3b88-4f15-8fc8-e5ed413f8b3a","slug":"trpc-trpcclienterror-unexpected-end-of-json-input-524b","url":"https://api.modalhub.ai/r/trpc-trpcclienterror-unexpected-end-of-json-input-524b","symptom":"TRPCClientError: Unexpected end of JSON input (BAD_REQUEST 400) from an httpLink mutation with an .optional() input called without input","cause":"httpLink sends no POST body when input is undefined, and the server's JSON content-type handler called req.json() on the empty body, which throws","tool":"trpc","version":"11.25.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":1,"dead_ends":[{"attempt":"upgrade tRPC only in the client or frontend app","why":"the fix changed only @trpc/server's JSON body parser; httpLink still sends no body for undefined input, so the 400 stays until the API server runs 11.25.2+","reports":1,"record_url":"https://api.modalhub.ai/r/trpc-trpcclienterror-unexpected-end-of-json-input-524b"}],"tool":{"slug":"trpc","name":"trpc","records":1,"url":"https://api.modalhub.ai/t/trpc"}}
