Comments (12)
Changing my bucket ID to one without periods fixed the issue, but I guess this one is worth looking into...
from gulp-awspublish.
I use it with buckets with period,
checkout knox the module we suse to talk to s3
https://github.com/LearnBoost/knox#style
On Sun, Jul 27, 2014 at 11:54 AM, Josh Hunt [email protected]
wrote:
Changing my bucket ID to one without periods fixed the issue, but I guess
this one is worth looking into...—
Reply to this email directly or view it on GitHub
#26 (comment)
.
PG
from gulp-awspublish.
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 region
attribute: https://github.com/LearnBoost/knox#region
from gulp-awspublish.
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 bucket name contains periods
- protocol is https (secure: true)
- publish was called from an ec2 machine
the workaround in my case:
- add
config.secure = false;
(i.e. use http instead of https which is no problem in my case because requests stay within the AWS network ec2->s3):
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
from gulp-awspublish.
The current version of the plugin use the aws sdk so this might be outdated
as long as you can use the aws sdk and push files to S3 with it, this plugin should work too
from gulp-awspublish.
@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.
awspublish.create({
key: key,
secret: secret,
bucket: "www.awesome.com",
region: "us-west-1"
});
(secure: false
wasn't it for me)
from gulp-awspublish.
Yep you are right could you add a note inside the readme maybe?
from gulp-awspublish.
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.
from gulp-awspublish.
See if this thread helps
#53
Check if you can do the following operations that the plugin does with your AWS client
https://github.com/pgherveou/gulp-awspublish/blob/master/lib/index.js#L312
https://github.com/pgherveou/gulp-awspublish/blob/master/lib/index.js#L336
from gulp-awspublish.
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.
from gulp-awspublish.
Cool glad it worked for u, can u send me a pull request to the readme
Sent from my iPhone
On Nov 22, 2015, at 8:07 PM, Philip Nelson [email protected] wrote:
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 sayvar publisher = awspublish.create({
region: 'us-west-2',
params: {
Bucket: '...'
}
});
But thanks for the quick comment I have it working now.—
Reply to this email directly or view it on GitHub.
from gulp-awspublish.
done
from gulp-awspublish.
Related Issues (20)
- CredentialsError: Missing credentials in config HOT 2
- How can I use option s3.path? HOT 1
- Some Malformed Assets - Fonts & Images
- Parallelize ignores `force` flag in options for publisher
- README is a lie re: IAM credentials. HOT 2
- Replace deprecated dependency gulp-util
- "InvalidParameterType: Expected params.ContentType to be a string" error after updating to 3.3.2 HOT 2
- TypeError: Cannot read property 'path' of undefined HOT 3
- Can I disable gzipped logs? HOT 5
- what is "cacheFileName", "Cache-Control" where can I find doumentation on this? HOT 1
- FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory HOT 3
- Setup Travis CI HOT 3
- AccessDenied - Non-Public S3 Breaks gulp-awspublish HOT 1
- Sync does not allow the deletion of more than 1000 keys/files HOT 3
- Why does it require "public" access to a bucket? HOT 2
- Way to only apply headers to files in a certain folder? HOT 1
- sync mark expires instead of deleting now
- Migrate to @aws-sdk/client-s3 HOT 1
- through2 still used in lib/log-reporter.js, but removed from package.json HOT 4
- Publishing finishes with async with no result
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-awspublish.