Skip to content
Advertisement

Tag: aws-lambda

get data from s3 Bucket [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question This is my code I got this error while getting the data from the bucket. Answer The error message writes

Getting “not all arguments converted during string formatting” exception in AWS Lambda function

I am trying to write an AWS Lambda function in python that retrieves records from a table. I have no trouble running the code locally. However, when I run the code in AWS Lambda function, I get the error “not all arguments converted during string formatting”. The query is executed by the following code: class SalesReceipt(declarative_base(), PersistentBase.PersistentBase): tablename = ‘sales_receipts’

when calling the UpdateMethod operation getting invalid path error for /methodIntegration/uri

I’m updating an API in AWS API Gateway. This is my lambda function: This works fine and updates “API key required” field, but when I try to update the “URI” field it throws the following error. “errorMessage”: “An error occurred (BadRequestException) when calling the UpdateMethod operation: Invalid patch path /methodIntegration/uri”, The path looks fine to me. Docs: https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-method.html Answer apiKeyRequired

Unable to import module ‘lambda_function’: No module named *

I am trying to run a python lambda function that uses additional packages. However whenever I upload the .zip file to the lambda console I get the error: I followed these instructions: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html#python-package-dependencies which told me to make sure my packages were in a directory local to my lambda function: I am not using Pillow. This is sample code from

Advertisement