hykter
hykter
TtRPC
Created by hykter on 1/31/2024 in #❓-help
TRPCClientError: Unable to transform response from server
Solved. As a RPC noob I didnt know that "convention of structuring JSON responses with a data field for the response data and an optional error field is commonly referred to as the "JSON API" or "JSON-RPC" convention. It's a widely used pattern for organizing data in JSON responses, especially in APIs and RPC (Remote Procedure Call) systems where clear communication of both successful responses and errors is crucial." so stick to that format and it will work
{
"data": {
// Response data goes here
},
"error": null
}
{
"data": {
// Response data goes here
},
"error": null
}
4 replies
TtRPC
Created by hykter on 1/31/2024 in #❓-help
TRPCClientError: Unable to transform response from server
when I replace trpc with simple fetch query it works, 0 issues
4 replies