Whenever I try to POST using FormData in NodeJS, it works locally but fails in production #1426
Replies: 5 comments 5 replies
-
Hi Daniel. Do you have a minimal reproduction or example deployment that I see? It would be helpful to get a closer look at what is going wrong in this function |
Beta Was this translation helpful? Give feedback.
-
I have the exact same issue. As a temporary workaround, reverting the node version to 16.x in the Vercel dashboard does solve the issue. |
Beta Was this translation helpful? Give feedback.
-
The issue was I was using Node 16 locally and Node 18 in production. Sadly I downgraded and its working fine now |
Beta Was this translation helpful? Give feedback.
-
I made the downgrade of node version on Vercel, and still not working for me. Locally is working but on prodction is not, here is the link form Github project :https://github.com/albertconceicao/portfolio/blob/main/src/pages/api/contact.ts. Additional information: Using nodemailer. |
Beta Was this translation helpful? Give feedback.
-
Can confirm that upgrading our node version in vercel from 18.x to 20.x solved the problem for us |
Beta Was this translation helpful? Give feedback.
-
Summary
The following code works fine locally, but when I deploy to Vercel, it fails. I'm trying to make a POST request from the backend.
Example
Error:
Additional information
Node - 18.x
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions