graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Null Reference Exception: Object reference not set to an instance of an object

Open mherbert opened this issue 2 years ago • 5 comments
trafficstars

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!

Document
  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)
Document
  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

mherbert avatar Jan 09 '23 06:01 mherbert

This is because fix from @rose-a was not included into release https://github.com/graphql-dotnet/graphql-client/releases/tag/v5.1.0.

изображение

sungam3r avatar Jan 09 '23 23:01 sungam3r

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.

mherbert avatar Jan 16 '23 16:01 mherbert

@rose-a Would you publish a release? Or I can do it myself pushing new tag.

sungam3r avatar Jan 16 '23 16:01 sungam3r

Is there any news on this release? We just encountered this issue today. Thanks!

Meccuz avatar Jan 19 '23 16:01 Meccuz

sorry for my slow reaction, I'm currently pretty swamped...

I just released v5.1.1 containing this fix. Hope this solves the problem.

rose-a avatar Jan 23 '23 12:01 rose-a