gazuntype / graphQL-client-unity

This repository houses a unitypackage that can be included in your Unity Project to enable it communicate with a graphQL server.
Apache License 2.0
292 stars 50 forks source link

Error parsing NaN value #10

Closed delgelato closed 4 years ago

delgelato commented 4 years ago

Hi. I'm new to GraphQl. I want to do some fetch from https://axieinfinity.com/graphql-server/graphql, but whatever variation of the url i do (without https://, without the last graphql, with a / at the end, etc), i always get this:

JsonReaderException: Error parsing NaN value. Path '', line 1, position 1.

It must be something simple but i really wanna try this out...

Cheers

edit: I'm now getting the same as the last post in here https://github.com/Gazuntype/graphQL-client-unity/issues/6 The ScriptableObject UI is not showing, and the console spams NullRef in Assets/graphQl-client/Scripts/Core/GraphApi.cs:153 Restarting Unity doesn't help, the spam continues

gazuntype commented 4 years ago

hi @delgelato ,

you can't fetch data from https://axieinfinity.com/graphql-server/graphql because it is not a valid API. i do not believe AxieInfinity has an open graphQL endpoint, and if they do, this isn't the endpoint.

an easy way to know if an endpoint is a valid graphQL endpoint is by putting it in your browser and checking if a graphiQL gui pops up.