wp-graphql-polylang icon indicating copy to clipboard operation
wp-graphql-polylang copied to clipboard

Querying for translations on categories causes Internal server error

Open CalebBarnes opened this issue 5 years ago • 1 comments

As the title says, querying translations in categories causes an internal server error.

Query:

{
  categories {
    nodes {
      translations {
        id
      }
    }
  }
}

Response:

{
  "errors": [
    {
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 5,
          "column": 9
        }
      ],
      "path": [
        "categories",
        "nodes",
        0,
        "translations",
        0,
        "id"
      ]
    },
    {
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 5,
          "column": 9
        }
      ],
      "path": [
        "categories",
        "nodes",
        1,
        "translations",
        0,
        "id"
      ]
    }
  ],
  "data": {
    "categories": {
      "nodes": [
        {
          "translations": [
            null
          ]
        },
        {
          "translations": [
            null
          ]
        }
      ]
    }
  }
}

CalebBarnes avatar Feb 12 '20 21:02 CalebBarnes

Maybe related to? https://github.com/valu-digital/wp-graphql-polylang/issues/15

Try with the GRAPHQL_DEBUG?

esamattis avatar Feb 13 '20 06:02 esamattis