Serverless NodeJS Deployment Error

Hi,

Whenever I upload a nodejs zip file for lambda, I get “The string did not match the expected pattern.” error, and there is no documentation for it. Could you please shed some light on it.

:wave: Hey there, just wanted to let you know I am currently investigating this further and will update this thread with my findings.

I suspect this might have to do with the structure of the file you are trying to upload. Would it be possible to get some more context about how you have things set up?

For context, here is an example of how to turn your NodeJS code into a zip file for upload.

Directory Structure

└── node
    ├── index.js

Command

zip code.zip node/* 

Great news! :tada: The issue has been resolved. Please give it a try, and let us know if anything else comes up. We’re here to help!

The issue was caused by the Nginx upload limit. We’ve increased it to 50MB.