500 error when using GraphQL API

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.

query PageInfoPopup($page: String!, $locale: String!) {
    sortBy: meta_firstPublicationDate_DESC
    lang: $locale
    first: 1
    where: { show_in_pages: { page_path: $page } }
  ) {
    edges {
      node {

Hi @turkka.mannila,

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


Looking forward to your reply,

Hi @turkka.mannila

I havn't received any private message from you or I have missed it!

Have you been able to fix this issue?