gazuntype/graphQL-client-unity

NullReferenceException: Object reference not set to an instance of an object GraphQlClient.Core.GraphApi.HandleIntrospection ()

Opened this issue · 9 comments

After entering a valid GraphQL URL, whilst Introspection

NullReferenceException: Object reference not set to an instance of an object
GraphQlClient.Core.GraphApi.HandleIntrospection () (at Assets/graphQl-client/Scripts/Core/GraphApi.cs:134)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:327)

Systeminfo:
MacOS 11.3.1
Unity 2020.3.9f1 Personal

axfig commented

I'm having the exact same issue and it began just a couple of days ago!

axfig commented

And mind you - I ran a couple of tests here just to make sure it wasn't because of any library I've downloaded or installed.
I've created a project from scratch and imported the graphql package. Introspecting the Pokemon demo results in the same error.

axfig commented

Well, I've solved it. Apparently, it was because of a malformed URL. The plugin sadly crashes when this happens and you have to manually delete the schema.txt inside the assets folder.

Same Null Reference Error here.
I can't solve it how to handle this??

Same error, can't introspect the Pokemon API nor my own on localhost

Well, I've solved it. Apparently, it was because of a malformed URL. The plugin sadly crashes when this happens and you have to manually delete the schema.txt inside the assets folder.

how your url was malformed ? can you help us ?

For anyone having the same problem, try copy plugin folder from the repo then paste in your Asset