Closed puremcc closed 3 years ago
Yep can replicate this. Will look into it
This should be fixed in 8.1.1. Didn't notice this one as ObjectSummary objects from await bucket.objects.all()
work fine when getting metadata as it uses a different method..... for some reason :D
I have a feeling other methods will also need tweaking around here as each bit of custom code boto3 adds we'll need to asyncify
Great, that worked! Thanks!
Description
Trying to using s3 resource.ObjectSummary to retrieve the filesize of an S3 object. I can await/obtain a valid
ObjectSummary
object, but the properties are all still coroutine objects. When I try toawait
thefilesize
property to resolve it to a value, I getargument of type 'coroutine' is not iterable
.Refer to the statement in the code below re:
filesize = await object_summary.size
What I Did
Traceback