Next.js Discord

Discord Forum

Nextjs api routes

Unanswered
𝕷𝖊𝖌𝖊𝖓𝖉𝖘ツ posted this in #help-forum
Open in Discord
Avatar
𝕷𝖊𝖌𝖊𝖓𝖉𝖘ツOP
Hello, i am using nextjs api routes for making a connection to get and upload files from an aws s3 database? but when i try to get a object from the database i get error that "TypeError: stream.pipe is not a function" does nextjs api routes handle aws connection differently because when making a connections straight from the frontend it works just fine? the typeError gives just error lines inside node_modules/@smithy and node_modules/@aws-sdk, it seems like the api route is expecting a stream or what?

0 Replies