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
When trying to save a new file as an attachment, I see save calls destroy_previous which results in an exception: Excon::Errors::Conflict: Expected(204) <=> Actual(409 Conflict)
The error message is "The bucket you tried to delete is not empty".
I see this type of exception is not rescued on s3data_store.rb.
I'm not sure why it tries to delete the bucket instead of just a file.
The text was updated successfully, but these errors were encountered:
Hi - thanks for this.
I'd rather raise a separate error than "DataNotFound", because the conflict error doesn't necessarily mean DataNotFound, so I've added a commit that raises a different error, which will be also rescued and logged by the model attachment - see d8cc1a4
Just leaving a note here. I had switched my S3 keys to another account and deleted the buckets in the first account. 10 minutes later, it looks like there was still a naming conflict with the bucket names. I had to change the bucket name in the new account to resolve the error. The error messages returned from S3 didn't make it obvious that this was the case.
When trying to save a new file as an attachment, I see
save
callsdestroy_previous
which results in an exception:Excon::Errors::Conflict: Expected(204) <=> Actual(409 Conflict)
The error message is "The bucket you tried to delete is not empty".
I see this type of exception is not rescued on
s3data_store.rb
.I'm not sure why it tries to delete the bucket instead of just a file.
The text was updated successfully, but these errors were encountered: