invalid_name
HTTP 422 Name is not valid
What happened
The name was rejected: it is empty, too long, or contains characters that are not allowed. Names take letters, digits, spaces, hyphens, underscores and dots, and a network name is limited to 30 characters; an SSH key name also takes @ : + ( ) /, so an ssh-keygen comment such as you@laptop fits. When a character is the reason, the detail field states the rule for that kind of name. Object storage has rules of its own: a bucket name is 3 to 63 characters - lowercase letters, digits and hyphens, starting and ending with a letter or digit - never lowercased for you (spaces around it are trimmed), and the storage may still refuse a name it reserves, in which case the detail says so; a service account name is 1 to 32 characters of lowercase letters, digits, hyphen and underscore; the name of the project itself is up to 64 characters.
What to do
Send a name within those rules and repeat the request. A name rejected by the request body check comes back as invalid_request instead, and only that code names the field in invalid_params.
Retrying
Fix the request and send it again.
How it arrives
{
"type": "https://docs.fiberax.com/errors/invalid_name",
"title": "Name is not valid",
"status": 422,
"code": "invalid_name",
"request_id": "a277dcd1ca652c65"
}
Branch your code on code, never on the wording of title.