Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drops first 5 letters of bucket name #541

Open
TheGrandmother opened this issue Sep 27, 2019 · 1 comment
Open

Drops first 5 letters of bucket name #541

TheGrandmother opened this issue Sep 27, 2019 · 1 comment
Labels

Comments

@TheGrandmother
Copy link

For some reason s3rver omits the first 5 letters of the bucket name.

Im starting s3 with s3rver -d ../data/s3rver -a 0.0.0.0 and when i try to uppload something to say the bucket printer the log output will say:

info: er 404 1ms -

when it should output info: printer 404 1ms -

The issue appears after updating from 1.0.3 to 3.5.0.

@fishcharlie
Copy link
Contributor

fishcharlie commented Feb 11, 2021

@TheGrandmother I can't reproduce this. Here are the steps I took:

  1. Created a temporary folder on my file system (~/tmp6 in this case) and cd into that directory
  2. npm i s3rver (which installs v3.6.1)
  3. npx s3rver -d data/s3rver -a 0.0.0.0
  4. (In another terminal window) aws s3 --endpoint=http://0.0.0.0:4568 mb s3://printer
  5. aws s3 --endpoint=http://0.0.0.0:4568 cp Hello.txt s3://printer/Hello.txt

The output of the original terminal window is:

charliefish@Charlies-MacBook-Pro tmp6 % npx s3rver -d data/s3rver -a 0.0.0.0

S3rver listening on 0.0.0.0:4568
info: Created new bucket "printer" successfully
info: PUT /printer 200 4ms 0b
info: Stored object "Hello.txt" in bucket "printer" successfully
info: PUT /printer/Hello.txt 200 9ms 0b

Not sure why you are getting a 404 error.

Can you please provide more detail about the exact steps you are taking to produce this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants