Code Monkey home page Code Monkey logo

Comments (6)

l01cd3v avatar l01cd3v commented on September 27, 2024

I created a bucket named "devs.mydomain.com" and enabled static website hosting on it but cannot reproduce the issue. Did you use a particular option? Can you share the command line you ran?

from scout2.

 avatar commented on September 27, 2024

Sure. The command used is default

python Scout2.py

I've examined my buckets and it seems that the problem is only with "dotted" ones, these which include dots in the bucket name. That is the only thing which they have in common.
Configuration of static websites differ.
Regions differ too.

Again here is the end of log (I've replaced bucket names with color.mydomain.com)

Fetching S3 buckets data...
BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
22/53hostname u'red.mydomain.com.s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'
hostname u'green.mydomain.com.s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'
hostname u'blue.mydomain.com.s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'
hostname u'yellow.mydomain.media.s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'
hostname u'pink.mydomain.com.s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'

from scout2.

l01cd3v avatar l01cd3v commented on September 27, 2024

Which version of Python and boto are you using? On what OS?

from scout2.

 avatar commented on September 27, 2024

Python 2.7.9 on Amazon Linux

Boto libs:
python27-boto.noarch 2.38.0-1.7.amzn1 @amzn-updates
python27-botocore.noarch 1.0.0-0.1.b3.14.amzn1 @amzn-updates

I've also tried with Ubuntu. There is another error message at the end of the request.

Python 2.7.6 on Ubuntu 14
Boto libs:
python-boto 2.20.1-2ubuntu2

Ubuntu error log

Fetching S3 buckets data...
label empty or too long
 BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
 BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
 BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
 BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
 BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
S3ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidRequest</Code><Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message><RequestId>563B659592E356BC</RequestId><HostId>zOhXcHicqczie32oUCR8h/wkN8ZS++BpJ7EJO+A1t20pb0tpaEWpoZAOiwMFAXQuZwvxG960Wxo=</HostId></Error>
31/88BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.

from scout2.

l01cd3v avatar l01cd3v commented on September 27, 2024

Sorry for the delayed response. I am unable to reproduce this issue. Would you mind trying the latest version of Scout2? I migrated away from boto to use boto3.

from scout2.

l01cd3v avatar l01cd3v commented on September 27, 2024

Closing for now

from scout2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.