SignalR exception thrown by Task: System.AggregateException:
scottc opened this issue · 2 comments
Getting runtime errors in the console output, but no noticeable behavioural problems with the XG application or web GUI. Unsure at which point in time these errors are occuring.
Looks like the error can be safely ignored because the underlying exception is just a NotImplementedException. Perhaps a empty catch block to suppress the NotImplementedException and rethrow anything else?
OS: ArchLinux
The error:
/home/scottc/xdcc-grabscher-master/XG.Application/bin/Release/Microsoft.AspNet.SignalR.Core.dll Warning : 0 : SignalR exception thrown by Task: System.AggregateException: One or more errors occured ---> System.NotImplementedException: The requested feature is not implemented.
at Microsoft.AspNet.SignalR.Owin.OwinWebSocketHandler+OwinWebSocket.get_State () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.WebSockets.WebSocketHandler.SendAsync (ArraySegment`1 message, WebSocketMessageType messageType, Boolean endOfMessage) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.WebSockets.DefaultWebSocketHandler.SendChunk (ArraySegment`1 message) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.BinaryTextWriter.<.ctor>b__6 (ArraySegment`1 data, System.Object state) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) System.Action`2<System.ArraySegment`1<byte>, object>:invoke_void__this___T1_T2 (System.ArraySegment`1<byte>,object)
at Microsoft.AspNet.SignalR.Infrastructure.BufferTextWriter+ChunkedWriter.Flush (System.Byte[] byteBuffer, Boolean flushEncoder) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.BufferTextWriter+ChunkedWriter.Flush (Boolean flushEncoder) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.BufferTextWriter+ChunkedWriter.Flush () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.BufferTextWriter.Flush () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Transports.WebSocketTransport.PerformSend (System.Object state) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Transports.WebSocketTransport.<Send>b__6 (System.Object state) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.TaskQueue.<Enqueue>b__1 (System.Func`2 next, System.Object nextState) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.TaskAsyncHelper.FromMethod[Func`2,Object] (System.Func`3 func, System.Func`2 arg1, System.Object arg2) [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[System.Boolean].GetResult () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Messaging.Subscription+<Invoke>d__2.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[System.Boolean].GetResult () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Messaging.Subscription+<Work>d__8.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Messaging.MessageBroker+<DoWork>d__2.MoveNext () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
--> (Inner exception 0) System.NotImplementedException: The requested feature is not implemented.
at Microsoft.AspNet.SignalR.Owin.OwinWebSocketHandler+OwinWebSocket.get_State () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.WebSockets.WebSocketHandler.SendAsync (ArraySegment`1 message, WebSocketMessageType messageType, Boolean endOfMessage) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.WebSockets.DefaultWebSocketHandler.SendChunk (ArraySegment`1 message) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.BinaryTextWriter.<.ctor>b__6 (ArraySegment`1 data, System.Object state) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) System.Action`2<System.ArraySegment`1<byte>, object>:invoke_void__this___T1_T2 (System.ArraySegment`1<byte>,object)
at Microsoft.AspNet.SignalR.Infrastructure.BufferTextWriter+ChunkedWriter.Flush (System.Byte[] byteBuffer, Boolean flushEncoder) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.BufferTextWriter+ChunkedWriter.Flush (Boolean flushEncoder) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.BufferTextWriter+ChunkedWriter.Flush () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.BufferTextWriter.Flush () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Transports.WebSocketTransport.PerformSend (System.Object state) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Transports.WebSocketTransport.<Send>b__6 (System.Object state) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Infrastructure.TaskQueue.<Enqueue>b__1 (System.Func`2 next, System.Object nextState) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.TaskAsyncHelper.FromMethod[Func`2,Object] (System.Func`3 func, System.Func`2 arg1, System.Object arg2) [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[System.Boolean].GetResult () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Messaging.Subscription+<Invoke>d__2.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[System.Boolean].GetResult () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Messaging.Subscription+<Work>d__8.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Messaging.MessageBroker+<DoWork>d__2.MoveNext () [0x00000] in <filename unknown>:0
I am getting theses SignalR errors too (on windows and mac). It might be an issue with NoWin, but because these error messages are created in SignalR itself, they cant be catched. SignalR uses some Microsoft logging stuff so they can not be muted by a log4net config and I did not find a way to control the log output of the MS logger.
Link to the underlying SignalR issue
SignalR/SignalR#2720