-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aws::S3::Errors::InvalidArgument when specifying an alternative endpoint #1021
Comments
I'm actually not able to reproduce this. Can you give me your stack trace from this error, and maybe specific parameters (if possible) that create this issue? Also, which version of the SDK are you using? |
Gemfile.lock for versions:
Specific task (rake task run nightly): https://gist.github.com/andretanguy/f29a8302450a39e290b0 For params, I have the following: AWS_ENDPOINT: 'https://vault.ecloud.co.uk', AWS_REGION: 'default' Stacktrace:
|
Try modifying your code like so: s3 = Aws::S3::Resource.new(http_wire_trace: true)
result = s3.bucket(app_name).object(backup_file_name).upload_file(backup_file_location) Given your custom endpoint situation, and common request, I suspect that a server-side issue is likely. A wire trace would help to confirm. |
|
Without further information, or a reproducing example against a public S3 endpoint, this looks like an issue with the endpoint you're trying to call. The error you're getting is coming from the server, it's cast as I'd recommend at this stage that you reach out to the endpoint provider and cut a bug report with them. Providing the wire trace may help in that regard. Feel free to reach out if we can be of any more help. |
Came across this today trying to use another Ceph installation. Pretty sure this is because Ceph versions < Jewel only supports aws2 signatures. DreamObjects is Hammer at the time of my posting. |
FYI, Dreamhost just upgraded DreamObjects to the Jewel release. I switched to using this gem over |
Experiencing an issue with the ruby aws-sdk (v2) with Rails 4.2.5. When using a Ceph endpoint rather than S3 itself (specifically, we're using https://vault.ecloud.co.uk but have also tried https://objects.dreamhost.com in line with the Ceph docs: http://docs.ceph.com/docs/master/radosgw/s3/ruby/).
When using the following setup, we get the Aws::S3::Errors::InvalidArgument response.
If we drop endpoint and force_path_style and just use our standard S3 credentials, all works fine.
The text was updated successfully, but these errors were encountered: