Skip to main content

Api update error 502

  • March 14, 2022
  • 1 reply
  • 2 views

I have written a payroll system in React.js. Using airtable as the database and netlify as hosting for my web app.
When in development, I run in my localhost and I can update my records without any error 502. But when I deploy my production to netlify, it gave api update records error 502.

Any helps will be greatly appreciated.

Thank you.

1 reply

Forum|alt.badge.img+19
  • Inspiring
  • 3264 replies
  • March 14, 2022

Hi PV, and welcome to the community!

This 502 error sounds familiar and maybe this is the cause.

I have a hunch that Netlify Functions based on Amazon Lambda currently only supports Node 12 [source] . So something like a conditional chaining operator (?.) that is only supported in Node 14, a version you are likely using locally would cause this experience.


Reply