Following query gives us 500 from Prismic GraphQL API when there are no matches for $page. Here show_in_pages is an array of page slugs for which we are matching.
When there are matching info articles, the response is returned as expected.
Welcome to the Prismic community,
I will try to reproduce this issue, and in order to do so, can you please share with us (in a private message if necessary) your repository name with us.
It would be helpful if you could share a link to the GraphQL query applied in the GraphQL browser accessible at
I recently ran into a similar issue. When querying for a document by id with a Prismic custom type that had no documents associated with it, the GraphQL endpoint returned a 500.
After creating one or more documents that use the same custom type, querying for a non-matching id would instead return a 200 with null data in the response body.
Thought I would share in case anyone runs into the same issue.