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
Amazon S3 is broken #121
Comments
More info: signature fails because |
This is a good bug. Comparing the working branch (0.6.15) against master, I notice that the URL that the client actually creates a PUT against:
Is actually different than the URL that's used in signing:
I'll research into why amazon does this, but for now, I'll need to pass around the signingUrl for amazon. |
This branch fixes the change (as a quick validation) but I'm not convinced I want this approach (where you pollute the official request options) https://github.com/rackspace/pkgcloud/compare/awsFix I'm going to think about a refactor for the "before" options to use a more first class object for passing around the input options and generating the real request options. |
@indutny a pull request to fix this was merged at master, can you test please and confirm that we can close this? |
Doesn't seem to be working for me, though, it got a bit better now |
Can you provide some sample code and details (node version, etc)? I have upload and createContainer both working for Amazon. |
You can try it there: https://github.com/indutny/glacebox |
Are you able to narrow it down? I don't really have time to look into your project to find out what's not working. I can validate that a naked pkgcloud (v0.7.1) upload works: var pkgcloud = require('pkgcloud');
var client = pkgcloud.providers.amazon.storage.createClient({
keyId: 'redacted',
key: 'redacted'
});
client.upload({
container: 'kptest2',
remote: 'GoogleVoiceAndVideoSetup.dmg',
local: '/Users/me/Downloads/GoogleVoiceAndVideoSetup.dmg'
}, function(err, result) {
console.dir(err);
console.dir(result);
}); |
Fixed by #137 |
After this d96f7b1.
The text was updated successfully, but these errors were encountered: