laurilehmijoki / s3_website

Manage an S3 website: sync, deliver via CloudFront, benefit from advanced S3 website features.
Other
2.24k stars 186 forks source link

"Authorization header is invalid" on push #178

Closed thom-nic closed 9 years ago

thom-nic commented 9 years ago

this happened after I attempted a second push, after the initial push succeeded.

$ bin/s3_website push
[info] Deploying /Users/thom/dev/foo/foo.com/_site/* to foo.com
[fail] Failed to fetch an object listing (Authorization header is invalid -- one and only one ' ' (space) required (Service: Amazon S3; Status Code: 400; Error Code: InvalidArgument; Request ID: ASDF1234))
[info] Summary: 2 operations failed.
laurilehmijoki commented 9 years ago

Closing as cannot-reproduce. Please reopen if needed.

thom-nic commented 9 years ago

I actually wrote my own plugin thom-nic/jekyll-s3_deploy which is a pure-ruby solution. Uses the official AWS SDK for Ruby. Supports content-encoding but not CloudFront just yet...

laurilehmijoki commented 9 years ago

Nice!

shinwang1 commented 7 years ago

I got this error when I made a mistake in my yml file. Instead of s3_id: <%= ENV['S3_ID'] %> I did s3_id: <$= ENV['S3_ID'] %>

thom-nic commented 7 years ago

Yeah the lesson learned is this error probably means an AWS key wasn't set correctly. Error message could be better.