Is this the problem that meant we had to
Is this the problem that meant we had to pin aws-sdk-ruby to an earlier version earlier this year?
11 Replies
I just tried with 3.226.2 of aws-sdk-core and I get back the non-descript error: Aws::S3::Errors::InvalidRequest so I think there might still be a problem there.
Adding back this fixes the problem:
This is in Ruby?
Yes 🙂
Checking...
With a test script, it seems to work?
Though, I am by no means a Ruby expert, so I might be overlooking something here...
I dug a bit deeper and this was the extra error message:
You can only specify one non-default checksum at a time.
This is the ActiveStorage gem (part of Rails) doing all of the work. It's abstracted quite deeply.Are you able to dump the request it is making somehow? Sounds like it might be trying to send both a
CRC32
and a CRC64
or something
Or any other algorithmI'm not sure I can because it's being made by the ActiveStorage gem. I'd have to modify the Rails codebase locally to get it to do that.
There is an issue raised about it that might help? https://github.com/rails/rails/issues/54374
GitHub
ActiveStorage creates conflicting checksums when using S3-compatibl...
Description When using ActiveStorage with S3-compatible services (specifically Cloudflare R2), ActiveStorage::Blob.create_and_upload! fails because it sends two different checksums to the storage s...