T
tRPC

❓-help

Errors while running mutations when deploying CT3A using SST

NNotLuksus12/18/2023
I'm currently migrating a NextJS project of mine from Vercel to SST. It's based of CT3A and the trpc setup is the same as in a fresh CT3A. I was also able to reproduce the error with a fresh CT3A Project. The error occurs when running mutations. TRPCClientError: Cannot read properties of undefined (reading 'resolve') The code for this, afaik runs in aws lambda. Maybe anyone has an idea?
Solution:
Solution is enabling streaming since ct3a uses the httpBatchStream link
Jump to solution
No description
NNotLuksus12/18/2023
Another thing I found, the request made actually returns a 200 with the correct response object but there are some random characters in between
No description
Solution
NNotLuksus12/19/2023
Solution is enabling streaming since ct3a uses the httpBatchStream link

Looking for more? Join the community!