ngraphql icon indicating copy to clipboard operation
ngraphql copied to clipboard

Error with GraphiQL

Open jasonlaw opened this issue 1 month ago • 4 comments

Hi @rivantsov ,

I have the following error with the latest GraphiQL. I am not sure if this is a GraphiQL issue, or there is an incompatible schema within NGraphQL. Logging this ticket just for your attention. Thanks.

{
  "errors": [
    {
      "message": "Syntax Error: Unexpected <EOF>.",
      "locations": [
        {
          "line": 1,
          "column": 1
        }
      ],
      "extensions": {},
      "stack": "GraphQLError: Syntax Error: Unexpected <EOF>.\n    at syntaxError (https://unpkg.com/[email protected]/graphiql.min.js:23092:10)\n    at Parser.unexpected (https://unpkg.com/[email protected]/graphiql.min.js:29568:41)\n    at Parser.parseValueLiteral (https://unpkg.com/[email protected]/graphiql.min.js:28799:20)\n    at parseValue (https://unpkg.com/[email protected]/graphiql.min.js:28357:24)\n    at buildInputValue (https://unpkg.com/[email protected]/graphiql.min.js:34790:128)\n    at keyValMap (https://unpkg.com/[email protected]/graphiql.min.js:26371:27)\n    at buildInputValueDefMap (https://unpkg.com/[email protected]/graphiql.min.js:34782:37)\n    at buildDirective (https://unpkg.com/[email protected]/graphiql.min.js:34812:13)\n    at Array.map (<anonymous>)\n    at Object.buildClientSchema (https://unpkg.com/[email protected]/graphiql.min.js:34614:86)"
    }
  ]
}

jasonlaw avatar Oct 29 '25 00:10 jasonlaw

can you pls add some details - when it happens? what query?

rivantsov avatar Nov 07 '25 04:11 rivantsov

I am using GraphQL.Server.Ui.GraphiQL 8.3.2. Not sure if this is related to this issue: https://github.com/graphql/graphiql/issues/2399

Image

jasonlaw avatar Nov 09 '25 23:11 jasonlaw

well, maybe - it relates to this grahiql error. But from error call stack, it looks purely js/client side thing

rivantsov avatar Nov 10 '25 16:11 rivantsov

agreed, but it seems the GraphQL spec that expect the escaped string literal for introspection, isn't it?

Image

jasonlaw avatar Nov 11 '25 05:11 jasonlaw