Skip to content

Cloudfront: Unable to parse URL error #1292

@fviard

Description

@fviard

Bug report imported from s3tools-bugs, reported by mkHS:

I ran with debug and there's nothing else helpful. Also checked current issues. Latest version. Some parsing error.

Invoked as: /usr/bin/s3cmd --debug cfinfo cf://E2E6XAEWUKSHUN
Problem: <class 'ValueError: Unable to parse URL: my-website.com.s3.us-east-2.amazonaws.com
S3cmd: 2.2.0
python: 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0]
environment LANG=en_US

Traceback (most recent call last):
File "/usr/bin/s3cmd", line 3209, in
rc = main()
File "/usr/bin/s3cmd", line 3106, in main
rc = cmd_func(args)
File "/usr/lib/python3/dist-packages/S3/CloudFront.py", line 700, in info
origin = S3UriS3.httpurl_to_s3uri(dc.info['S3Origin']['DNSName'])
File "/usr/lib/python3/dist-packages/S3/S3Uri.py", line 128, in httpurl_to_s3uri
raise ValueError("Unable to parse URL: %s" % http_url)
ValueError: Unable to parse URL: my-website.com.s3.us-east-2.amazonaws.com

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions