T
tRPC

Wrong JSON response when deployed

Wrong JSON response when deployed

APA. Perkamentus8/30/2023
When testing in localhost in dev mode there is no issue and the response is correct as expected. But when deployed, I get a weird JSON response with numbers. (see image). This results in a client side error because it cannot be parsed correct.
No description
Ssudoer_with_an_opinion8/31/2023
We will need more information to dive into this: there isn't any way to know what is happening here. This could be a dev DB returning the correct thing but production does not. Maybe it's an external API that is throwing an error, etc. Can you provide some context and maybe some code that you're using? Also, is there any specific differences between dev and prod like a DB adapter or other envvars?

Looking for more? Join the community!

T
tRPC

Wrong JSON response when deployed

Join Server