ERROR: o [TRPCClientError]: Invalid response or stream interrupted
Recently kicked off a new project from create-t3-app.
I made one update to use neon db on the db/schema and sent up my first commit/innit. The project deployed and I was able to create a new post and view the latest post with no issues.
For my second commit I wanted to remove most of the boilerplate t3 setup. You can see this in the image I attached for my PR.
I removed
and removed most of the content on the page.
my new page.tsx looks like this
I now get this error when deploying to vercel.
6 Replies
I tried awaiting
I realized I don't understand how all of this works and would be grateful if someone could explain to me what the issue is with the changes I made!
More context for the error on a local build
adding
solves my issue but i still don't understand why removing this
suddenly breaks the build?
code snippet for what builds now
I believe you have to use prefetch server-side together with useSuspenseQuery on the client-side.
component:
page:
@Matt_ , are you using clerk by any chance?
@William thanks for this suggestion. I will test this out today and get back to you. Out of curiousty do you know why the default code works but removing the other api call suddenly breaks and needs to be reworked?
@Juraj98 I am not! This is just the starter template from create t3 app latest. so not far along in this project
@Matt_, could I take a look at your code?
Following this thread since I got the same issue.
I tried to set the Route Segment to force-dynamic, my site was rendered to browser, but returned with 500 error code.
Please take a look at: https://lengis.aprdth.com. It successfully render the page but it returns 500 error code.