You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing null to an asynchronous service method accepting a Nullable<T> parameter, Halibut will not consider it a match and fails with the following exception:
Halibut.Exceptions.AmbiguousMethodMatchHalibutClientException : Could not decide which candidate to call out of the following methods:
- System.Threading.Tasks.Task`1[System.Int32] IncrementAsync(System.Threading.CancellationToken)
- System.Threading.Tasks.Task`1[System.Int32] IncrementAsync(System.Nullable`1[System.Int32], System.Threading.CancellationToken)
The request arguments were:
<null>
Halibut.Exceptions.AmbiguousMethodMatchHalibutClientException : Could not decide which candidate to call out of the following methods:
- System.Threading.Tasks.Task`1[System.Int32] IncrementAsync(System.Threading.CancellationToken) - System.Threading.Tasks.Task`1[System.Int32] IncrementAsync(System.Nullable`1[System.Int32], System.Threading.CancellationToken)The request arguments were:<null>
More Information
I have written a test and patched the bug, will submit a PR ASAP.
Workaround
No response
The text was updated successfully, but these errors were encountered:
Team
What happened?
When passing
null
to an asynchronous service method accepting aNullable<T>
parameter, Halibut will not consider it a match and fails with the following exception:Reproduction
Define an async service method like this:
And invoke it like this:
Error and Stacktrace
More Information
I have written a test and patched the bug, will submit a PR ASAP.
Workaround
No response
The text was updated successfully, but these errors were encountered: