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
Spike
SpikeOP•2mo ago
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:
request_checksum_calculation: when_required
response_checksum_validation: when_required
request_checksum_calculation: when_required
response_checksum_validation: when_required
Hard@Work
Hard@Work•2mo ago
This is in Ruby?
Spike
SpikeOP•2mo ago
Yes 🙂
Hard@Work
Hard@Work•2mo ago
Checking...
Hard@Work
Hard@Work•2mo ago
With a test script, it seems to work?
Hard@Work
Hard@Work•2mo ago
Hard@Work
Hard@Work•2mo ago
Though, I am by no means a Ruby expert, so I might be overlooking something here...
Spike
SpikeOP•2mo ago
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.
Hard@Work
Hard@Work•2mo ago
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 algorithm
Spike
SpikeOP•2mo ago
I'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.
Spike
SpikeOP•2mo ago
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...

Did you find this page helpful?