Skip to content

Conversation

@kubosuke
Copy link

Change Summary

What and Why:
When creating a storage bucket with an invalid name length, the API returns a generic error: The specified bucket is not valid. This makes it hard for users to understand the issue.

How:
Added client-side validation to check bucket name length (3-63 characters) before calling the API, with a clear error message and link to docs.

Error: bucket name "..." is too long: must be at most 63 characters, got 64. 
See https://www.tigrisdata.com/docs/buckets/bucket-rules/

Related to:
N/A


Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

When a bucket name exceeds 63 characters (or is less than 3), the API
returns a generic error message 'The specified bucket is not valid'.

This change adds client-side validation to provide a clear error message
that explains the length constraint and includes a link to the Tigris
bucket naming rules documentation.

Example error:
  bucket name "..." is too long: must be at most 63 characters, got 64.
  See https://www.tigrisdata.com/docs/buckets/bucket-rules/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant