Home
Support Forums

Build fails. Invalid AWS Lambda parameters?

I need advice to debug deploy Netlify App

Hi there, glad you found us :wave:

A good starting point for any debugging advice is this Support Guide! Please walk through the suggestions it makes.

If you still need assistance after that, we will need a little more information on the issues you are facing.

Please tell us:

  • The issue you are encountering
  • the name of your build instance: “example-jones.netlify.com
  • what you have already tried
  • any error messages you have received in your terminal window or in the developer console

Thank you :slight_smile:

Hi @lorio,

I believe the problem is because your functions/checkout.js file is empty (or corrupted):

A side tip: You need not have your build command as cd functions && npm i && cd ... Just add the dependencies required by your function inside the package.json used by your website. However I can see that your website doesn’t use package.json at all. In this case, you could simply add the package.json from the functions folder to the base folder and it would still work.

1 Like

Thank you! Made those changes and it’s publishing now!

1 Like