- Documentation
Torch Object Storage
FAQ
How should I proceed if I encounter an "InvalidPathAccess" error when trying to access TOS via a path-style URL?
FAQ
How should I proceed if I encounter an "InvalidPathAccess" error when trying to access TOS via a path-style URL?
How should I proceed if I encounter an "InvalidPathAccess" error when trying to access TOS via a path-style URL?
I received Forbidden path to access server or InvalidPathAccess errors when trying to access TOS via a path-style URL.
The difference between the path style and the virtual-hosted style lies in the location of the bucket name in the HTTP URL. See the example below:
When accessing TOS through S3-compatible SDKs or tools, make sure that the request method is set to "VirtualHostStyle". For example:
- When using the AWS S3 Java SDK, disable path-style access during client initialization by setting AmazonS3Builder.withPathStyleAccessEnabled(false).
- When using the AWS CLI to access TOS, add addressing_style = virtual to the ~/.aws/config file to use the virtual-hosted style.
Last updated: 2026.06.22 15:21:16