Skip to main content
General·HTTP 400·API, CLI, FE

Wildcard domain not valid

wildcard_invalid

A wildcard domain has to be written as a star, a dot and a domain name: for example *.example.com.

What this means​

The name contains a star in another place, more than one star, or the part after the star is not a valid domain.

How to fix it​

Write the wildcard as *. followed by the domain, with the star only at the start, and add it again.

Retry behavior​

Sending the same name again gets the same answer.

How it appears in the response​

ComputeSphere returns errors as RFC 7807 Problem Details. The type field is the docs URL for this page — switch on code in your client.

{
"type": "https://docs.computesphere.com/errors/wildcard_invalid",
"title": "Wildcard domain not valid",
"status": 400,
"code": "wildcard_invalid",
"detail": "A wildcard domain has to be written as a star, a dot and a domain name: for example *.example.com.",
"instance": "/v2/…",
"request_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"trace_id": null
}

The Content-Type header is application/problem+json. On field-level validation errors a non-empty errors[] array also appears, each entry carrying its own docs_url for the offending field.