bji / libs3

Other
157 stars 151 forks source link

bucket's region #34

Open sebachang opened 8 years ago

sebachang commented 8 years ago

how to set region for connection? i cannot operate the North Californa region's bucket, but the US Standard region's bucet is ok. i am in china.

advent-embedded commented 6 years ago

Even i face up the same issue, it dosen't work for other regions except us-east-1, i.e, N.Virgina, could someone help in fixing this

martinprikryl commented 6 years ago

If you are getting ErrorPermanentRedirect with:

ERROR: ErrorPermanentRedirect
  Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
  Extra Details:
    Bucket: bucketname
    Endpoint: bucketname.s3.amazonaws.com

... you have to use the -h switch

   -h/--vhost-style     : use virtual-host-style URIs (default is path-style)