-
Notifications
You must be signed in to change notification settings - Fork 101
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
Error: Failed to invoke 'JoinGroup' due to an error on the server #2045
Comments
Could someone at least point me to a Microsoft rep I can talk to about this? |
|
Hi @vicancy, so I have already enabled the detailed errors in The
So let's say we have our production API service deployed in Kubernetes connected to Azure SignalR. Would this potentially cause this issue? If the answer is yes, how should I handle this in a production scenario when the API service running in k8 has multiple instances running? Should I create a custom (random) application name for each running instance of the API service? Also, if I set a random application name for each running instance of the API service does this mean I can stop using sticky sessions? |
When you run the API service locally on your dev machine that connects to the same Azure SignalR, then your local dev machine and your production API services are all considered as running instances for the same app, and your production connections might route to your local API. Usually we use a separate Azure SignalR instance for dev/test purpose. You could also use a different ApplicationName for different stages.
This depends on your scenario. Are these k8s instances sharing the same Hub logic or not? If they are multiple instances for the same Hub logic, they are the same ApplicationName. If they are for different purpose and having different Hub logic, then they should use different ApplicationNames to isolate from others. You could also try logging the exceptions thrown in the method in your app server side to view the detailed error: public class YourHub: Chat{
private ILogger _logger;
public YourHub(ILogger<YourHub> logger){
_logger = logger;
}
public void JoinGroup(){
try{
...
}catch(Exception e){
_logger.LogError(e...)
}
}
} |
Describe the bug
We're attempting to use Azure SignalR (with managed identities) with an Angular frontend and ASP.net Core backend.
For a particular method call I'll see the following error about 50% of the time:
We're supplying an object with 3 properties to the
JoinGroup
function.From the Angular application this looks like the following:
From the ASP.net core application our hub looks like the following:
And the
RecoveryGroupName
looks like the following:I can't figure out why this is happening!!
I don't see any errors from the server (nothing in the logs or console when running locally).
I've set
EnableDetailedErrors
totrue
but that made no difference.All I see in the browser is the following:
Am I doing something wrong here?
How can I troubleshoot this? There are no error messages!
One thing I've noticed is if I set
ServerStickyMode
toRequired
I don't see the issue:Why does this fix my issue?
I didn't think we needed sticky sessions since we're using Azure SignalR..
Any insight from you folks would be really appreciated!
I've enabled additional server side logging via:
But this doesn't show any errors even when I recreate the error.
All I see is the following additional logging:
I've also enabled the trace tool but again it doesn't show that there is any errors!
Can anyone help me with this?
To Reproduce
Exceptions (if any)
Further technical details
The text was updated successfully, but these errors were encountered: