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

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

Open SUPERFRUITY opened 3 years ago

SUPERFRUITY commented 3 years ago

After entering a valid GraphQL URL, whilst Introspection

SUPERFRUITY commented 3 years ago

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)

SUPERFRUITY commented 3 years ago

Systeminfo: MacOS 11.3.1 Unity 2020.3.9f1 Personal

axfig commented 3 years ago

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

axfig commented 3 years ago

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 3 years ago

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.

tjdgns0258 commented 3 years ago

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

soundling commented 3 years ago

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

soundling commented 3 years ago

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 ?

VietnameseRick commented 7 months ago

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