Ordnary

Docs Ordnary Web Services Ordnary R2

Path-style requests

Why the bucket goes in the path, what the InvalidArgument error means, and how to switch each tool to path-style addressing.

2 min readIntermediate

The S3 API accepts path-style requests only: https://s3.ordnary.com/<bucket>/<key>. A request to the bare endpoint without a bucket in the path, or one that put the bucket in the hostname, is refused with InvalidArgument and the message *A bucket name is required in the request path*.

Switch your tool

aws configure set s3.addressing_style path
Virtual-hosted (refused)
https://my-bucket.s3.ordnary.com/photos/beach.jpg
Path-style (works)
https://s3.ordnary.com/my-bucket/photos/beach.jpg
Was this page helpful?
Updated 25 October 2026 Suggest an edit

Choose which cookies Ordnary may use. You can change this at any time via Cookie settings at the bottom of every page.