I need to read the content of an audio file which is stored in AWS using boto3. To do that right now I am doing something like this:
client = boto3.client('s3')
client.download_file(obj.bucket, obj.key, "temp.mp3")
However it is not downloading the file and giving me a clientError something like this:
An error occurred (404) when calling the HeadObject operation: Not Found
I am not sure what HeadObject is. is there any alternate way to read the content of a file stored in specific bucket at a specific key?