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 APIClient (Python) in AWS Lambda function #12368

Open
MikeTherien-PP opened this issue Apr 8, 2024 · 0 comments
Open

Using APIClient (Python) in AWS Lambda function #12368

MikeTherien-PP opened this issue Apr 8, 2024 · 0 comments

Comments

@MikeTherien-PP
Copy link

Description

When trying to use the ApiClient class generated, I get an error, "No such file or directory". Upon further investigation, it
appears this is occurring because the client creates a ThreadPool, which isn't allowed in AWS Lambda

Swagger-codegen version

3.0.54 via Docker at swaggerapi/swagger-codegen-cli-v3

Swagger declaration file content or url

n/a - cannot post in a public forum without nda

Command line used for generation
Python - -i {json url} -l python -DapiTest=false -DmodelTests=false -DapiDocs=false -DmodelDocs=false -Dmodels -c ./local/config.json -o ./local
Steps to reproduce

client = ApiClient()

throws error

Related issues/PRs

n/a

Suggest a fix/enhancement

Maybe the ability to disable the use of Thread Pools? If there is a way to do this without modification, please let me know.

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