graphql-client
graphql-client copied to clipboard
Null Reference Exception: Object reference not set to an instance of an object
I am using version 5.1.0 and still receiving the Null Reference Exception on SendMutationAsync and SendQueryAsync as well. Appreciate your inputs .. thank you!
| Name | Value | Type | |
|---|---|---|---|
| ◢ | $exception | {System.NullReferenceException: Object reference not set to an instance of an object. at GraphQL.Client.Http.GraphQLHttpClientOptions.<>c.<.ctor>b__44_2(HttpResponseMessage r) in //src/GraphQL.Client/GraphQLHttpClientOptions.cs:line 60 at GraphQL.Client.Http.GraphQLHttpClient.SendHttpRequestAsync[TResponse](GraphQLRequest request, CancellationToken cancellationToken) in //src/GraphQL.Client/GraphQLHttpClient.cs:line 124 at GraphQL.Client.Http.GraphQLHttpClient.SendQueryAsync[TResponse](GraphQLRequest request, CancellationToken cancellationToken) |
| Name | Value | Type | |
|---|---|---|---|
| StackTrace | " at GraphQL.Client.Http.GraphQLHttpClientOptions.<>c.<.ctor>b__44_2(HttpResponseMessage r)\n at GraphQL.Client.Http.GraphQLHttpClient.<SendHttpRequestAsync>d__281.MoveNext()\n at GraphQL.Client.Http.GraphQLHttpClient.<SendQueryAsync>d__231.MoveNext()\n at VectorLMS.Person.<addPersons>d__2.MoveNext() in |
This is because fix from @rose-a was not included into release https://github.com/graphql-dotnet/graphql-client/releases/tag/v5.1.0.

Thank you Sungam! I am new to this process. How can I get the fix? Will there be a new version released soon? Thank you again for your help.
@rose-a Would you publish a release? Or I can do it myself pushing new tag.
Is there any news on this release? We just encountered this issue today. Thanks!
sorry for my slow reaction, I'm currently pretty swamped...
I just released v5.1.1 containing this fix. Hope this solves the problem.