reador23
reador23
TtRPC
Created by reador23 on 7/6/2023 in #❓-help
Express + tRPC: handle express errors from client
Maybe if I successfully do it, I could write an article or something on how I migrated a big production Express + SSR React app to tRPC.
17 replies
TtRPC
Created by reador23 on 7/6/2023 in #❓-help
Express + tRPC: handle express errors from client
Oh thanks! I actually did something kind of similar, I will show you on Monday when I get back to work. It would be nice if it can help people in the future. I think its really important for people that want to migrate their big applications to tRPC as they want to be able to keep using their current code (in our case here its the error handling) and have time to gradually migrate.
17 replies
TtRPC
Created by reador23 on 7/6/2023 in #❓-help
Express + tRPC: handle express errors from client
Your fix indeed works as expected, I’m still having trouble on how to do error handling depending on this response, but I think it’s because I’m new to this concept of link and how it works, like how to throw a new error.
17 replies
TtRPC
Created by reador23 on 7/6/2023 in #❓-help
Express + tRPC: handle express errors from client
Ah I wish…, but my company in japan would probably laugh to my face for asking this. For now I’m trying to sell the idea of tRPC to my managers. So still working on a PoC. Maybe if one day tRPC becomes a huge part of my company tech stack
17 replies
TtRPC
Created by reador23 on 7/6/2023 in #❓-help
Express + tRPC: handle express errors from client
Wow! Incredible support! Thank you so much, I will give it a try
17 replies
TtRPC
Created by reador23 on 7/6/2023 in #❓-help
Express + tRPC: handle express errors from client
Thats a good idea, I already have a custom link but when I log the error from there its already the tRPC error "Unable to transform response from server". Maybe I'm not doing it right, do you have an example of implementation ?
17 replies