-
Notifications
You must be signed in to change notification settings - Fork 421
Parameter Secrets - too many open files #4003
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
Comments
Hey @tb102122! Reproducing the error here can be quite challenging, especially considering that there you may have AWS Lambda imposes certain hard limits when running code, one of which is the Are you opening/saving many files? Are you iterating something and creating a new boto3 instance in every iteration? Any other I/O operation? I'm afraid I can't assist you here, as this error wasn't generated by Powertools, but rather by botocore when making the HTTP request to the AWS endpoint 😞. |
Thanks for the explanation. |
Maybe reading files before calling parameters?! Or some other operation that could impact the file descriptor. Thanks |
|
Expected Behaviour
Return of Secret details
Current Behaviour
"errorMessage": "SSL validation failed for https://secretsmanager.eu-central-1.amazonaws.com/ [Errno 24] Too many open files",
"errorType": "GetParameterError",
"stackTrace": [
" File "/var/task/xxx.py", line 70, in lambda_handler\n secret_details = ssm_provider.get(secretName)\n",
" File "/opt/python/aws_lambda_powertools/utilities/parameters/base.py", line 139, in get\n raise GetParameterError(str(exc))\n"
]
}
Code snippet
Possible Solution
No response
Steps to Reproduce
I am not sure how to reproduce it. I assume it was due to several quick invokes of the same lambda function.
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.11
Packaging format used
Lambda Layers
Debugging logs
No response
The text was updated successfully, but these errors were encountered: