question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

s3bucket_path broken from 0.4.19 to 0.4.20

See original GitHub issue

I couldn’t find any issue (appart the old #55) for this regression.

I run moto_server s3bucket_path -H 0.0.0.0 -p 5000.

With 0.4.19:

$ curl http://127.0.0.1:5000/            

<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01">
  <Owner>
    <ID>bcaf1ffd86f41161ca5fb16fd081034f</ID>
    <DisplayName>webfile</DisplayName>
  </Owner>
  <Buckets>
 </Buckets>
</ListAllMyBucketsResult>

With 0.4.20:

$ curl http://127.0.0.1:5000/            

<?xml version="1.0" encoding="UTF-8"?>
  <Response>
    <Errors>
      <Error>
        <Code>NoSuchBucket</Code>
        <Message>The specified bucket does not exist</Message>
        <BucketName>127</BucketName>
      </Error>
    </Errors>
  <RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID>
</Response>

I cannot invest much time into this (right now) and just wanted to let you know about this regression (plus, 0.4.19 is working fine). So I’m sorry to be the one adding stuff to the pile without contributing…

Thank for your project! Vital for our functional tests!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
2mfcommented, May 31, 2016

That was introduced by commit: https://github.com/spulec/moto/commit/0535f445be4ab0edcdf8053d7396c474cb9221ba

and a terrible assumption within: host.startswith("localhost")

How can we just assume only localhost is for path based?

If you let moto run in a docker container for example…

0reactions
leplatremcommented, Nov 24, 2016

Sorry, I think it does, now that I look at the original issue description 😃

$ curl http://127.0.0.1:5000/                                 
<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01">
  <Owner>
    <ID>bcaf1ffd86f41161ca5fb16fd081034f</ID>
    <DisplayName>webfile</DisplayName>
  </Owner>
  <Buckets>
 </Buckets>
</ListAllMyBucketsResult>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't I access a specific folder or file in my Amazon S3 ...
I can't access a certain prefix or object that's in my Amazon Simple Storage Service (Amazon S3) bucket. I can access the rest...
Read more >
Access Denied' when trying to read S3 file from AWS Lambda ...
I can read from s3 without providing additional credentials e.g. s3.ls(path/to/bucket). But this bucket is definitely not public so it is ...
Read more >
terraform-aws-modules/s3-bucket/aws
Terraform module which creates S3 bucket on AWS with all (or almost all) features provided by Terraform AWS provider.
Read more >
How to read a list of parquet files from S3 as a pandas ...
1) and pandas (0.20.3). First, I can read a single parquet file locally like this: import pyarrow.parquet as pq path ...
Read more >
Deploy to AWS with S3 | Bitbucket Cloud - Atlassian Support
The following guide shows how to deploy your files to an AWS S3 bucket using the aws-s3-deploy pipe in Bitbucket Cloud Pipelines.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found