Skip to main content

Api update error 502

  • Mar 14, 2022 1:47 AM UTC
  • 1 reply
  • 60 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.

This topic has been closed for replies.

1 reply

Bill_French
Forum|alt.badge.img+19
  • Inspiring
  • Mar 14, 2022 4:11 PM UTC

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.