NotLuksus
NotLuksus13mo ago

Errors while running mutations when deploying CT3A using SST

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?
No description
Solution:
Solution is enabling streaming since ct3a uses the httpBatchStream link
Jump to solution
2 Replies
NotLuksus
NotLuksusOP13mo ago
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
NotLuksus
NotLuksus13mo ago
Solution is enabling streaming since ct3a uses the httpBatchStream link

Did you find this page helpful?