graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

"message": "Unexpected error value: { name: \"SyntaxError\", message: \"Unexpected 'I'\", at: 1, text: \"Invalid Query\" }",

Open vijayakumarit opened this issue 2 years ago • 5 comments

Hi I am merging two API's in a same host using GraphQL. I followed what I done last time with Normal Openspec same thing I followed Here as well. But I am facing an issue like "Unexpected error value: { name: "SyntaxError". I am not sure Anything I added Wrong? I am adding Code as well Anyone can take a look and give your inupt.

Code: **_sources:

  • name: ScoopsSearch handler: graphql: endpoint: http://localhost:8080/profiles/graphql/ScoopsSearch baseUrl: http://localhost:8080/ operationHeaders: user: "{env.user}" x-zisession: "{env.x-zisession}" x-ziid: "{env.x-ziid}" x-ziaccesstoken: "{env.x-ziaccesstoken}"

  • name: FacetsSearch handler: graphql: endpoint: http://localhost:8080/profiles/graphql/facets baseUrl: http://localhost:8080/ operationHeaders: user: "{env.user}" x-zisession: "{env.x-zisession}" x-ziid: "{env.x-ziid}" x-ziaccesstoken: "{env.x-ziaccesstoken}"_**

vijayakumarit avatar May 20 '22 11:05 vijayakumarit

Could you share a reproduction? Thanks

ardatan avatar May 20 '22 13:05 ardatan

Sure. Let me share the GraphQL Playground screenshot.

Screenshot 2022-05-20 at 10 49 09 PM

vijayakumarit avatar May 20 '22 17:05 vijayakumarit

Code Screenshot 2022-05-20 at 10 51 43 PM

vijayakumarit avatar May 20 '22 17:05 vijayakumarit

Sorry I need a reproduction on CodeSandbox, StackBlitz or at least in a repo. Screenshots don't help.

ardatan avatar May 20 '22 17:05 ardatan

Hi @ardatan , It's my private office Repo... So that graphql service is not accessible for me.... Any other option from your end.... The only problem when I call two times in same yaml file.... May I am available for a call any time .. just 5 mins

vijayakumarit avatar May 26 '22 16:05 vijayakumarit