You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing some method that calls get_object method from boto3.client('s3'). There is a VersioningConfiguration enabled for a bucket that I'm trying to get a file from.
When I try to test a case where there is no such version for a given file, I'm receiving the wrong error code from moto.
Originally, s3 returns me a response with a response error code = NoSuchVersion while moto is always returning NoSuchKey error code.
Can this NoSuchVersion exception be added?
The text was updated successfully, but these errors were encountered:
Hi there,
I'm testing some method that calls
get_object
method fromboto3.client('s3')
. There is aVersioningConfiguration
enabled for a bucket that I'm trying to get a file from.When I try to test a case where there is no such version for a given file, I'm receiving the wrong error code from moto.
Originally, s3 returns me a response with a response error code =
NoSuchVersion
while moto is always returningNoSuchKey
error code.Can this
NoSuchVersion
exception be added?The text was updated successfully, but these errors were encountered: