In this post, we will see how to resolve Error No file found while converting file present in s3 using boto3
- I have a csv files present in s3
- I am able to print bucket name, key and file content
- But while converting to json I am getting Error no file found
- There is only one csv file which is of 1 KB
code is below
Best Answer:When you have:
N.B: keep an eye on the memory (MB) consumed. Increase memory size for the Lambda function as needed.
Further, I am assuming – based on the docs – that
So if you have
bytes, you can then turn it into a string with:
csv.DictReaderexpects, by wrapping the above with:
If you have better answer, please add a comment about this, thank you!