graphQL-client-unity icon indicating copy to clipboard operation
graphQL-client-unity copied to clipboard

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

Open SUPERFRUITY opened this issue 4 years ago • 9 comments

After entering a valid GraphQL URL, whilst Introspection

SUPERFRUITY avatar Jun 08 '21 13:06 SUPERFRUITY

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 avatar Jun 08 '21 13:06 SUPERFRUITY

Systeminfo: MacOS 11.3.1 Unity 2020.3.9f1 Personal

SUPERFRUITY avatar Jun 08 '21 13:06 SUPERFRUITY

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

axfig avatar Jun 10 '21 20:06 axfig

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 avatar Jun 10 '21 21:06 axfig

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.

axfig avatar Jun 15 '21 22:06 axfig

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

tjdgns0258 avatar Jun 17 '21 07:06 tjdgns0258

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

soundling avatar Aug 03 '21 14:08 soundling

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 ?

soundling avatar Aug 03 '21 14:08 soundling

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

VietnameseRick avatar Apr 05 '24 23:04 VietnameseRick