-
Notifications
You must be signed in to change notification settings - Fork 84
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
301 Redirect error #26
Comments
Changing my bucket ID to one without periods fixed the issue, but I guess this one is worth looking into... |
I use it with buckets with period, On Sun, Jul 27, 2014 at 11:54 AM, Josh Hunt notifications@github.com
PG |
I also ran into this issue after changing my S3 bucket name. At first, I also suspected that it was a bucket name with periods, but it turned out that I moved from a US Standard bucket to one in US West and needed to specify the |
I had the same error on some machines and didn't have it on others. In the end, I narrowed the error down to the following conditions:
the workaround in my case:
awspublish.create({
key: key,
secret: secret,
bucket: bucketName,
secure: false
}); As HTTP 301 is not really an error, I would expect awspublish to just follow the redirect? There is a related discussion on the knox repo: Automattic/knox#66 |
The current version of the plugin use the aws sdk so this might be outdated |
@shedd is right, even though S3's Region pulldown menu seems not to care about Regions it so does. My suggestion is to always specify the region option, e.g.
( |
Yep you are right could you add a note inside the readme maybe? |
With the current 2.0.2 version of the plugin, using a name with periods in it, required for host name mapping of an s3 bucket, a publish command fails with the 301 issue. I can use the exact same code with a bucket without a period and all is fine. I am specifying the region as shown above. I can post with the aws s3 command with no problems. Any suggestions would be appreciated. |
See if this thread helps Check if you can do the following operations that the plugin does with your AWS client |
Gah! yes region was still the problem. I had region in there, but in the wrong place. It would really be great if the example on the README.md just had this in it from the start. instead of: var publisher = awspublish.create({
params: {
Bucket: '...'
}
}); please update the README to say var publisher = awspublish.create({
region: 'us-west-2',
params: {
Bucket: '...'
}
}); But thanks for the quick comment I have it working now. |
Cool glad it worked for u, can u send me a pull request to the readme Sent from my iPhone
|
done |
Whenever I use this, I keep getting the following error:
Here's my task so far
And my env variables:
What would be causing this? Should gulp-awspublish/knox follow the redirect, or have I made an error somewhere?
Edit: Digging in some more, if I make a get request, I get this back:
The text was updated successfully, but these errors were encountered: