-
Notifications
You must be signed in to change notification settings - Fork 85
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
deploying to bucket outside the default region us-east-1 fails with cryptic 301: null error #53
Comments
sorry for the hassle |
Glad you found the error, |
I ran into this same issue today also. It would help if there was mention of the region parameter in the README to let users know that they need to specify the region. I'm happy to send a pull request with that change if you're good with it. |
@JamieDixon good idea |
PR are more than Welcome :) Sent from my iPhone
|
We just pushed 2.0 out which takes straight S3 config options, so you are able to do quite a few other things like use a proxy. Do you think we still need to be explicit about the region in that case? |
when there are many possible AWS regions and the error for wrong region is On Tue, Apr 28, 2015 at 9:11 AM Alex Gorbatchev [email protected]
|
I just used an invalid bucket name for the test and got a pretty digestible error. Perhaps it was addressed on AWS side?
|
try different region?
|
@alexgorbatchev Using v2, got the same cryptic 301. Adding to the readme or changing the error would definitely still help. |
And for those who get this error and don't know how to specify the region: var publisher = $.awspublish.create({
region: 'eu-west-1',
params: {
Bucket: '...'
}
}); |
The region key for frankfurt is: |
I encountered same error when I tried to upload wrong region. I have a budget in code example: AWS = require('aws-sdk')
credentials = new AWS.SharedIniFileCredentials({profile: 'your-profile-name'})
AWS.config.credentials = credentials
AWS.config.region = 'region-the-budget-exists'
publisher = awspublish.create({
params: {
'Bucket': 'your-budget-name'
}
}) |
Thank you @kretz :) |
man, wasted so much time on this. in my ~/.aws config, my region is set to us-west-2 but the gulp task woulden't work unless i specify it. /facepalm |
Thanks for the issue and workaround. |
this is basically user error on my part, but forgetting to pass the AWS region in the config
{}
for non-us-east-1 buckets causes gulp-awspublish to die with a cryptic301: null
error. it would be nice if this error was more helpful, e.g.:BUCKET NOT FOUND: please check your bucket name and AWS region
gulp-awspublish version:
error:
The text was updated successfully, but these errors were encountered: