tmspzz / Rome

Carthage cache for S3, Minio, Ceph, Google Storage, Artifactory and many others
MIT License
820 stars 57 forks source link

[S3 Glacier] Unable to upload / download data from the remote cache #197

Open LukasHromadnik opened 5 years ago

LukasHromadnik commented 5 years ago

Hello. :)

First of all thank you for all your hard work. We love using Rome.

Bug Report

After updating to the latest version 0.23.1.61 we are unable to upload or download any file from our remote cache. The previous version works just fine. When I use the verbose output I get this error

SerializeError (SerializeError' {_serializeAbbrev = Abbrev "S3", _serializeStatus = Status {statusCode = 400, statusMessage = "Bad Request"}, _serializeBody = Just "{\"code\":\"MissingParameterValueException\",\"message\":\"Required parameter missing: API version\",\"type\":\"Client\"}", _serializeMessage = "1:1 (0)-1:110 (109): Found content after root element: EventContent (ContentText \"{\\\"code\\\":\\\"MissingParameterValueException\\\",\\\"message\\\":\\\"Required parameter missing: API version\\\",\\\"type\\\":\\\"Client\\\"}\")"})

I tried to add the missing parameter to the AWS config file (see documentation) but it didn't help.

Steps which explain reproduce the bug

  1. Update to the latest version 0.23.1.61
  2. Run rome upload -v or rome download -v

Current behavior

Rome doesn't upload nor download any data from the remote cache.

Suggested behavior

Rome should upload or download any requested data from the remote cache.

Rome version:

0.23.1.61

OS and version:

macOS, 10.14.5

tmspzz commented 5 years ago

Hi,

I don’t see this happening with S3. Can you help me reproduce?

LukasHromadnik commented 5 years ago

I don't know if it makes a difference but we use Glacier instead of S3.

tmspzz commented 5 years ago

@LukasHromadnik , don't use Glacier. There is a bug in the AWS library https://github.com/brendanhay/amazonka/issues/511

If you still want to use Glacier, implement your own engine