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
Subscription [GraphQL] errors not being caught #92
Comments
If I declare 'emitterIdConfidence' as nullable in the client schema (which it isn't meant to be), then I do get the ErrorRecieved event. |
Will you try version 2.1.2-beta0001 on the AppVeyor NuGet feed? It can be found here: |
I should be able to try that tomorrow, I have appveyor set up as a NuGet feed for my solution. |
Unfortunately, I think - with the change being based on 2.1.2 - I'm now missing #77 so I can't actually subscribe at all |
I've been adding a new subscription (with no enum), which should allow me to check the fix in 2.1.2-beta0001. |
I have merged the fix into develop. Would you try version SAHB.GraphQL.Client.2.2.0-alpha0085.nupkg? |
Yep, that seems to be catching the error ok. By the way - do you have a planned timeline for a 2.2.0 release? I'd be happy, and keen, to continue working with further enhancements, but it would also be good to re-baseline my project to a formal release in the meantime. |
I have now created a 2.2.0 release. It should contain the fix. |
Great - thanks! |
I've encountered a situation where my server is generating a message containing errors:
It looks, from GraphQLSubscriptionOperation.OperationSource_RecievePayload(), like this should fire the ErrorRecieved event handler - but this doesn't seem to be happening. (I have it hooked in my app).
I've tried to step into the source (hopefully the correct git version for the NuGet package I'm using...):
result does contain errors, but "if (result.ContainsErrors)" is never reached - from DerializeResult it jumps to SendMessageAsync().
Perhaps because the errored field ('emitterIdConfidence') has a value of null...?
[Note: the error is due to incorrect coding of the server's schema ('emitterIdConfidence' should be declared as Float) - but it would be nice to have the error appear somewhere]
The text was updated successfully, but these errors were encountered: