-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Response body object should not be disturbed or locked #14
Comments
Hey, have you solved it? Mine for change returns a cast error when i try to create a new user |
I still have the issue. I search for this error "TypeError: Response body object should not be disturbed or locked" and found some people having the same prolem said that it could be nextjs bug. I just wonder why it works in the tutorial but not for us. |
Got it, turned out that i missed a slash before api path in the server.ts file:
It has to be:
|
I changed the zod schema validation (for email validation) kept on getting cast error w it when ive trued to sign up w my czech email adress for instance, and boom. Finally worked for me as well😂 |
Thank u @dutuka your solution worked for me, I had not even an TypedError but this one : |
Hey! |
same issue. thanks! |
Add a return before fetchRequestHandler and it will work |
I have the same issue even I wrote the path correctly why?? |
Did anyone fix it? Neither Renaming to /api/trpc or adding the "return" in route.ts seem to be working for me Edit: NVM I fixed it. Another thing that can cause this error is if you put the nextHandler on top instead of bottom
|
I have following error at 03:57:55
sign up doesnt work for me, i get 500 internal server error
On http://localhost:3000/sell/create-first-user it works, but doesnt work on http://localhost:3000/sign-up
Terminal log:
TypeError: Response body object should not be disturbed or locked
⨯ Error: No response is returned from route handler '\src\app\api\trpc[trpc]\route.ts'. Ensure you return a
Response
or aNextResponse
in all branches of your handler.at webpack://next/./dist/esm/server/future/route-modules/app-route/module.js:191:35
What can cause the issue?
The text was updated successfully, but these errors were encountered: