Troubleshoot S3 endpoint and path-style errors

Keep the workspace ID in the request path under the /s3 endpoint, correct virtual-host defaults, and retest with an allowed S3 credential safely.

Last reviewed

Dosya is mounted at https://api.dosya.dev/s3, so clients must keep the workspace bucket in the URL path. Virtual-host style changes the host and omits the bucket segment expected by the gateway route.

Four-step workflow map for Troubleshoot S3 endpoint and path-style errors: Inspect the request path for /s3 and workspace ID, preserve both path segments. Replace an AWS or bare API endpoint, use https://api.dosya.dev/s3. Turn on path-style addressing in the client, keep the bucket inside the request path. Retry a shallow list request, capture the exact S3 status and error code.
This map follows troubleshoot s3 endpoint and path-style errors from “Inspect the request path for /s3 and workspace ID, preserve both path segments.” through “Replace an AWS or bare API endpoint, use https://api.dosya.dev/s3.” and “Turn on path-style addressing in the client, keep the bucket inside the request path.”, ending with “Retry a shallow list request, capture the exact S3 status and error code.”. Open full-size screenshot.

Before you start

Keep the S3 secret out of screenshots and logs. Confirm the parent API key includes the S3 surface and is not expired before changing network settings.

For rclone’s S3 backend, the released working shape uses provider = Other, endpoint = https://api.dosya.dev/s3, force_path_style = true, and region = us-east-1. The tested large-upload cutoff is 64Mi.

Steps

  1. Inspect the failed request URL and verify it should be /s3/{workspace-id}/{object-key} on host api.dosya.dev.
  2. Replace any AWS default endpoint or bare https://api.dosya.dev value with https://api.dosya.dev/s3.
  3. Turn on the client’s path-style option, named forcePathStyle, s3ForcePathStyle, or force_path_style depending on the tool.
  4. Set the region to us-east-1 and the bucket to the literal Dosya workspace ID.
  5. Retry a HEAD bucket or shallow list; if rclone alone returns SignatureDoesNotMatch, set sign_accept_encoding = false so an upstream header rewrite is not signed.
  6. Confirm the successful request reaches the intended bucket, then run one scoped object operation and inspect its exact key.
Reference for “Troubleshoot S3 endpoint and path-style errors”: Dosya S3-compatible access overview page.
Reference for “Troubleshoot S3 endpoint and path-style errors”: Dosya S3-compatible access overview page. Open full-size screenshot.

Expected result

The client sends and signs the gateway’s real path, Dosya parses the workspace as the bucket, and the request reaches S3 routing instead of an unrelated API route or virtual host.

If authentication still fails, distinguish InvalidAccessKeyId from SignatureDoesNotMatch. The first requires a current access ID; the second requires checking secret, base path, signed headers, clock, and client canonicalization.

Was this helpful?

Loading helpfulness results…

Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.

Questions and replies

Ask about the steps in this guide. Questions are reviewed before publication.

Keep account details, credentials and private files out of public questions. Use private support for those.

Loading questions…

    Sign in to your Dosya account to ask a question.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.