-
Notifications
You must be signed in to change notification settings - Fork 446
How to indicate errors with ChannelReader<T> ? #2609
Comments
By default SignalR will not send the exception message to clients because they can contain sensitive information. You can change this behavior by setting In 2.2 we have enabled apps to throw a |
@BrennanConroy Error message is lost even with HubException. Please see below code and results. This is my server code
This is what I see on server And this is what I got on client |
Yeah, like I said, it's fixed in 2.2 (SignalR 1.1), you're using 1.0.1 so you won't have the change. |
Any plans to release SignalR 1.1 as pre release nuget package? |
We have our nightly builds at https://dotnet.myget.org/feed/aspnetcore-dev |
I was confused by these generic errors a couple of days ago, and had to search a bit to find the |
We periodically close 'discussion' issues that have not been updated in a long period of time. We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate. |
SignalR does not report errors correctly with streaming methods. My code below throws error in 'GetOrAddObservable' with some message. I receive exception on client but it does not have my message, instead it has some generic error message like 'something went wrong on server'.
So I tried this instead with same result.
This is my client side code which receives this error.
AsChannelReader copied from here - https://github.com/aspnet/SignalR/blob/master/samples/SignalRSamples/ObservableExtensions.cs
The text was updated successfully, but these errors were encountered: