Bumblebee
Client receives 200 status when throwing TRPCError
Using pnpm, Next 14 app router and tRPC v11 mainly based on create-t3-turbo.
If I have a query on the client and then throw, for example, a TRPCError with code UNAUTHORIZED, the client is getting back a 200 rather than a 401.
The onError callback is properly getting and logging the 401 but the response sent to the client is a 200. Is there any way to propagate the error to the client?
The same behaviour can be seen on a fresh create-t3-app if a repro is wanted
2 replies