Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SUPERFRUITY opened this issue Jun 8, 2021 · 9 comments

Comments

@SUPERFRUITY
Copy link

After entering a valid GraphQL URL, whilst Introspection

@SUPERFRUITY
Copy link
Author

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
Copy link
Author

Systeminfo:
MacOS 11.3.1
Unity 2020.3.9f1 Personal

@axfig
Copy link

axfig commented Jun 10, 2021

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

@axfig
Copy link

axfig commented Jun 10, 2021

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
Copy link

axfig commented Jun 15, 2021

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
Copy link

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

@soundling
Copy link

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

@soundling
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants