Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong response schema for createSite when there is an error #377

Open
matrixise opened this issue Apr 11, 2022 · 1 comment
Open

Wrong response schema for createSite when there is an error #377

matrixise opened this issue Apr 11, 2022 · 1 comment

Comments

@matrixise
Copy link

When you read the documentation of createSite

When there is an error, the response schema is

{ message: string, code: integer<int64> }

but it's not the case because we get this JSON message:

{
    "errors": {
        "subdomain": ["must be unique"]
    }
}

Also, the status code is 422, it's not documented.

@sbahir
Copy link

sbahir commented Apr 14, 2022

@matrixise I have the same issue but I can't identify the root cause of this error

Do you know what could be the problem that triggers this error?

Thank you for the help

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

No branches or pull requests

2 participants