Skip to content

Crashed CMS Preview API: #4434

@alissonpalmeira

Description

@alissonpalmeira

Version

5.41.3

Operating System

Ubuntu 22.04

Browser

Chrome

What are the steps to reproduce this bug?

After creating a 'Single Entry Model' through either the API Playground or code, the CMS Preview API crashes, while the CMS Read API continues to function correctly.

What is the expected behavior?

{
"data": {
"listContentModels": {
"data": [
{
"name": "Contact",
"modelId": "contact"
}
},
"extensions": {
"console": []
}
}

What do you see instead?

{
"error": {
"message": "Cannot destructure property 'createTypeField' of 'n[r]' as it is undefined.",
"code": "INVALID_GRAPHQL_SCHEMA_LOCATIONS",
"data": {
"endpoint": "preview"
}
}
}

image

Additional information

I exported the model and imported it into another Webiny instance, but the issue persisted.

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions