NodeJS app, API calls fails on live server


I have a simple NodeJS application: a single page with a form to record e-mail addresses on my Mailchimp audience. The code works on localhost and on heroku swimmingly, but when I deploy it on cpanel it seems to work but doesn’t actually creates new records.

  • I use axios for HTTP request middleware.
  • Both sides use secure connection as suggested in this post.
  • cURL command works on cpanel terminal.
  • environment variables are set in cpanel.

I exhausted many possible routes on my quest of solution. If you have any idea or another aspect I can search for the error please share.

Upon downgrading node version from 14 to 10, it works now.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.