-
Notifications
You must be signed in to change notification settings - Fork 80
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: Body is unusable #172
Comments
using |
@ryanto can you help me to solve this issue? |
This sounds like a bug, sorry about that! I think the fix should be straight forward, but I'll need to dig into it first. If you need to get unstuck right now then I'd recommend using the pages api route. Setup the API route under /pages/api/s3-upload. Even if you're using the app router, pages api routes will still work. See here: https://next-s3-upload.codingvalue.com/setup#api-route-(pages-router) |
Thanks @ryanto ...the workaround work |
When adding the /pages API route, is it within the app directory or outside? I tried both ways, and the endpoint cannot be found. I am trying to pass the following parameter in the body:
Any guidance will be greatly appreciated. thanks! |
I think the page route is outside the app directory... |
I decided not to use the pages route and do the following to get the parameter I needed. Enough for my project. /app/api/s3-upload/route.js
/fileuploadpage.js
|
Generate an unnecessary 308 redirect to From:
To:
|
Hello,
I'm trying to pass custom parameters with a request, but I'm encountering an error that I don't understand how to handle. I'm using Next.js 13 with
/app/api/s3-upload/route.ts
.This is my client-side code:
This is my server-side code:
And this is the exception I'm facing:
The text was updated successfully, but these errors were encountered: