{"action":"opened","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3435","repository_url":"https://api.github.com/repos/Starcounter/Starcounter","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3435/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3435/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3435/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3435","id":138970421,"number":3435,"title":"Registering too long group name: StarcounterFileUploadWebSocketGroup","user":{"login":"miyconst","id":6435556,"avatar_url":"https://avatars.githubusercontent.com/u/6435556?v=3","gravatar_id":"","url":"https://api.github.com/users/miyconst","html_url":"https://github.com/miyconst","followers_url":"https://api.github.com/users/miyconst/followers","following_url":"https://api.github.com/users/miyconst/following{/other_user}","gists_url":"https://api.github.com/users/miyconst/gists{/gist_id}","starred_url":"https://api.github.com/users/miyconst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyconst/subscriptions","organizations_url":"https://api.github.com/users/miyconst/orgs","repos_url":"https://api.github.com/users/miyconst/repos","events_url":"https://api.github.com/users/miyconst/events{/privacy}","received_events_url":"https://api.github.com/users/miyconst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-07T12:46:59Z","updated_at":"2016-03-07T12:46:59Z","closed_at":null,"body":"I am trying to register a `Handle.WebSocket` hanlder:\r\n\r\n```cs\r\nHandle.WebSocket(\"StarcounterFileUploadWebSocketGroup\", () => { ... });\r\n```\r\n\r\nBut it fails with the following exception:\r\n\r\n```\r\n\"Starcounter.DbException: ScErrFailingEntrypoint (SCERR4259): The user code entrypoint method raised an exception. System.Exception: Registering too long group name: StarcounterFileUploadWebSocketGroup\r\n   at Starcounter.Internal.AllWsGroups.RegisterHandlerInternal(UInt16 port, String groupName) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Starcounter.Internal\\Http\\WsManager.cs:line 217\r\n   at Starcounter.Internal.AllWsGroups.RegisterWsDelegate(UInt16 port, String groupName, Action`2 userDelegate) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Starcounter.Internal\\Http\\WsManager.cs:line 250\r\n   at KitchenSink.HandleFile.GET(String Url, Action`1 UploadingAction) in D:\\GitHub\\Samples\\KitchenSink\\src\\KitchenSink\\HandleFile.cs:line 51\r\n   at KitchenSink.Program.Main() in D:\\GitHub\\Samples\\KitchenSink\\src\\KitchenSink\\Program.cs:line 97\r\nVersion: 2.3.977.\r\nHelp page: https://github.com/Starcounter/Starcounter/wiki/SCERR4259.\r\n   at Starcounter.Hosting.Package.ExecuteEntryPoint(Application application) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Hosting\\Starcounter.Hosting\\Package.cs:line 513\r\n   at Starcounter.Hosting.Package.ProcessWithinCurrentApplication(Application application) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Hosting\\Starcounter.Hosting\\Package.cs:line 273\r\n   at Starcounter.Hosting.Package.Process() in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Hosting\\Starcounter.Hosting\\Package.cs:line 143\r\n   at Starcounter.Hosting.Package.Process(IntPtr hPackage) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Hosting\\Starcounter.Hosting\\Package.cs:line 56\r\n   at StarcounterInternal.Hosting.Processor.RunMessageLoop(Void* hsched) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Hosting\\Starcounter.Hosting\\Processor.cs:line 86\r\nErrorCode=4259\r\nHResult=-2146233088\r\nHelpLink=https://github.com/Starcounter/Starcounter/wiki/SCERR4259\r\n---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.\r\n   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)\r\n   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n   at Starcounter.Hosting.Package.ExecuteEntryPoint(Application application) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Hosting\\Starcounter.Hosting\\Package.cs:line 487\r\nHResult=-2146232828\r\n---> System.Exception: Registering too long group name: StarcounterFileUploadWebSocketGroup\r\n   at Starcounter.Internal.AllWsGroups.RegisterHandlerInternal(UInt16 port, String groupName) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Starcounter.Internal\\Http\\WsManager.cs:line 217\r\n   at Starcounter.Internal.AllWsGroups.RegisterWsDelegate(UInt16 port, String groupName, Action`2 userDelegate) in C:\\TeamCity\\TeamCity9\\buildAgent\\work\\sc-80\\Level1\\src\\Starcounter.Internal\\Http\\WsManager.cs:line 250\r\n   at KitchenSink.HandleFile.GET(String Url, Action`1 UploadingAction) in D:\\GitHub\\Samples\\KitchenSink\\src\\KitchenSink\\HandleFile.cs:line 51\r\n   at KitchenSink.Program.Main() in D:\\GitHub\\Samples\\KitchenSink\\src\\KitchenSink\\Program.cs:line 97\r\nHResult=-2146233088\r\n\"\r\n```\r\n\r\n- I think the maximum available group name should be extended.\r\n- The exception message text should indicate what is the maximum length.\r\n\r\ncc @alemoi "}}