[SOLVED] Unknown type error when using components

I have…

I’m submitting a…

  • [x] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

Previously working queries seem to have started failing today, with error messages regarding unknown types for components.

Expected behavior

The query works as it did previously.

Minimal reproduction of the problem

Try to run a grahql query which uses embedded components, like this:

{
  queryDocumentContents {
    id
    flatData {
      slug
      components {
        __typename
        ...CalloutComponent
      }
    }
  }
}

fragment CalloutComponent on CalloutComponent {
  text
}

Where CalloutComponent is defined as a component:

An error is reported:

"Unknown type - CalloutComponent"

I’m seeing this for multiple component types.

Environment

App Name:

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [x] Cloud version

Hi John,

Sorry for the inconveniences. There was a new deployment today, where this broke after a simple variable rename. Unfortunately there was no test case where real component was used inside GraphQL. I am going to fix the issue, add new tests and then deploy it again.

In the meantime, I have rolled back the deployment.

1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.