Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Docker image based lambda raises TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string #142

Open
matthieudesprez opened this issue Jul 5, 2023 · 0 comments

Comments

@matthieudesprez
Copy link

It seems to come from

async createWrappedPythonFunction(func, token, options, isZip) {
  this.verboseLog(`wrapping [${func.handler}]...`);
  
  const localName = func.localName;
  
  // e.g. functions/hello.world.handler -> hello.world.handler
  const handler = path.basename(func.handler);
  ...

as no handler is defined in the function, path.basename can't work properly, while it's a valid serverless configuration according to https://www.serverless.com/blog/container-support-for-lambda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant