I'm trying to create a group with UUID as a group name. SignalR API returns 400 Bad Request with message "Incorrect group name.". This looks odd especially considering the fact that I can use UUIDs as UserId .
Where can I find any rules how a group name should look like? And is there any chance to support UUIDs as group names on SignalR service side?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@myarotskaya
Thanks for your feedback! We will investigate and update as appropriate.
@myarotskaya, for group name the length limit is 64 characters, so regular UUID should be ok, but it has extra requirement, that it must start with alphabet than numeric character. Otherwise it will trigger "Incorrect group name". this is the Regex for your reference: ^[A-Za-z][A-Za-z0-9_]{0,63}$
@myarotskaya, for group name the length limit is 64 characters, so regular UUID should be ok, but it has extra requirement, that it must start with alphabet than numeric character. Otherwise it will trigger "Incorrect group name". this is the Regex for your reference: ^[A-Za-z][A-Za-z0-9_]{0,63}$
@myarotskaya, We will also try and get the information updated in the document. Thank you!
@myarotskaya, Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.
@sffamily @AjayKumar-MSFT thank you for the reply!
It's useful to see regular expression and it would be great if you add it to documentation but what about the second part of my question: is there any chance to support UUIDs as group names on SignalR service side?
@myarotskaya, Thank you for responding back. In regards to the second part, we are checking on this and will get back to you soon.
@AjayKumar-MSFT I'm also interested in using UUIDs as group names. Why is there such limitation? 🤒
The group id is used more than REST API, so the limitation got carried over. Product team will review this case and to see whether there is a possibility to remove the restriction. Meanwhile please submit it as a user issue at our GitHub repo: https://github.com/Azure/azure-signalr/issues , so we can better track it.
Most helpful comment
@sffamily @AjayKumar-MSFT thank you for the reply!
It's useful to see regular expression and it would be great if you add it to documentation but what about the second part of my question: is there any chance to support UUIDs as group names on SignalR service side?