Closed the-mod closed 2 years ago
Couple things here:
Invoking 'onClosed' method failed:
is logged when your code throws from the onClosed
handler.onClosed
is not called when negotiate fails, instead the Completable
from hubConnection.Start
will have an error that you should observe and handle as you wish.If you're seeing behavior that doesn't match that, please be specific about what it is.
Hi @the-mod. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
Thanks for the fast feedback. I see the Points and will increase my Code. The Issue can be closed
Is there an existing issue for this?
Describe the bug
Hi there,
I am running SignalR Client for Java in Version
6.0.3
.I saw in our Logs, that SignalR Connection somehow crasht and the onClosed Handler wasn't called.
The Error Message coming from the SDK was
Unexpected status code returned from negotiate: 502 .
,Invoking 'onClosed' method failed
in Classcom.microsoft.signalr.HubConnection
at MethodstopConnection
.Stacktrace:
It seams to me, the Connection to SignalR was then closed.
Before that some other Error occured:
java.io.EOFException
,java.io.EOFException at okio.RealBufferedSource.require
atcom.microsoft.signalr.OkHttpWebSocketWrapper
on MethodonFailure
Stacktrace:
Expected Behavior
Expected Behavior would be to call at least the
onClosed
Handler, where a reconnection could be handled.Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
java17
Anything else?
No response