{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-uamqp-python/issues/56","repository_url":"https://api.github.com/repos/Azure/azure-uamqp-python","labels_url":"https://api.github.com/repos/Azure/azure-uamqp-python/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-uamqp-python/issues/56/comments","events_url":"https://api.github.com/repos/Azure/azure-uamqp-python/issues/56/events","html_url":"https://github.com/Azure/azure-uamqp-python/issues/56","id":395507151,"node_id":"MDU6SXNzdWUzOTU1MDcxNTE=","number":56,"title":"Support Message grouping(sessionful)?","user":{"login":"silencev","id":24366323,"node_id":"MDQ6VXNlcjI0MzY2MzIz","avatar_url":"https://avatars1.githubusercontent.com/u/24366323?v=4","gravatar_id":"","url":"https://api.github.com/users/silencev","html_url":"https://github.com/silencev","followers_url":"https://api.github.com/users/silencev/followers","following_url":"https://api.github.com/users/silencev/following{/other_user}","gists_url":"https://api.github.com/users/silencev/gists{/gist_id}","starred_url":"https://api.github.com/users/silencev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silencev/subscriptions","organizations_url":"https://api.github.com/users/silencev/orgs","repos_url":"https://api.github.com/users/silencev/repos","events_url":"https://api.github.com/users/silencev/events{/privacy}","received_events_url":"https://api.github.com/users/silencev/received_events","type":"User","site_admin":false},"labels":[{"id":849245722,"node_id":"MDU6TGFiZWw4NDkyNDU3MjI=","url":"https://api.github.com/repos/Azure/azure-uamqp-python/labels/question","name":"question","color":"d876e3","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-01-03T09:36:54Z","updated_at":"2019-01-04T01:51:34Z","closed_at":null,"author_association":"NONE","body":"I'm using uamqp to connect with Azure Service Bus (enable session) and get following error:\r\n\r\n```python\r\nuamqp.errors.LinkDetach: ErrorCodes.NotAllowed:\r\nIt is not possible for an entity that requires sessions to create a non-sessionful message receiver.\r\n```\r\nHow can I receive the message with `SessionId`?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Azure/azure-uamqp-python/issues/comments/451333914","html_url":"https://github.com/Azure/azure-uamqp-python/issues/56#issuecomment-451333914","issue_url":"https://api.github.com/repos/Azure/azure-uamqp-python/issues/56","id":451333914,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTMzMzkxNA==","user":{"login":"silencev","id":24366323,"node_id":"MDQ6VXNlcjI0MzY2MzIz","avatar_url":"https://avatars1.githubusercontent.com/u/24366323?v=4","gravatar_id":"","url":"https://api.github.com/users/silencev","html_url":"https://github.com/silencev","followers_url":"https://api.github.com/users/silencev/followers","following_url":"https://api.github.com/users/silencev/following{/other_user}","gists_url":"https://api.github.com/users/silencev/gists{/gist_id}","starred_url":"https://api.github.com/users/silencev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silencev/subscriptions","organizations_url":"https://api.github.com/users/silencev/orgs","repos_url":"https://api.github.com/users/silencev/repos","events_url":"https://api.github.com/users/silencev/events{/privacy}","received_events_url":"https://api.github.com/users/silencev/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T01:51:34Z","updated_at":"2019-01-04T01:51:34Z","author_association":"NONE","body":"hi @annatisch \r\n\r\nthanks again!\r\n\r\nafter couple hours, I use CBS auth and enable logging.\r\nI found it doesn't return any messages from service bus.\r\n\r\nblocking in for 60 seconds (I give it a timeout value)\r\n```c\r\n2019-01-04 09:44:17,696 [receiver] receiver.py:296 Message receiver b'receiver-link-a7affd27-1a12-43c3-9c50-e22bc33139cc' state changed from <MessageReceiverState.Opening: 1> to <MessageReceiverState.Open: 2> on connection: b'493d3773-8122-48b1-a634-abd83d0925dc'\r\n```\r\n\r\n```c\r\n2019-01-04 09:44:12,137 [common] common.py:213 Creating SASL Mechanism\r\n2019-01-04 09:44:12,143 [amqp] amqp.py:26 Deallocating 'DictValue'\r\n2019-01-04 09:44:12,143 [amqp] amqp.py:26 Destroying 'DictValue'\r\n2019-01-04 09:44:12,143 [amqp] amqp.py:26 Deallocating 'SymbolValue'\r\n2019-01-04 09:44:12,143 [amqp] amqp.py:26 Destroying 'SymbolValue'\r\n2019-01-04 09:44:12,143 [amqp] amqp.py:26 Deallocating 'StringValue'\r\n2019-01-04 09:44:12,143 [amqp] amqp.py:26 Destroying 'StringValue'\r\n2019-01-04 09:44:12,144 [client] client.py:210 Opening client connection.\r\n2019-01-04 09:44:12,144 [__init__] __init__.py:147 Initializing platform.\r\n2019-01-04 09:44:12,151 [connection] connection.py:178 Connection b'493d3773-8122-48b1-a634-abd83d0925dc' state changed from <ConnectionState.START: 0> to <ConnectionState.START: 0>\r\n2019-01-04 09:44:12,631 [connection] connection.py:178 Connection b'493d3773-8122-48b1-a634-abd83d0925dc' state changed from <ConnectionState.START: 0> to <ConnectionState.START: 0>\r\n2019-01-04 09:44:14,667 [connection] connection.py:260 b'-> Header (AMQP 0.1.0.0)'\r\n2019-01-04 09:44:14,667 [connection] connection.py:178 Connection b'493d3773-8122-48b1-a634-abd83d0925dc' state changed from <ConnectionState.START: 0> to <ConnectionState.HDR_SENT: 2>\r\n2019-01-04 09:44:14,915 [connection] connection.py:260 b'<- Header (AMQP 0.1.0.0)'\r\n2019-01-04 09:44:14,915 [connection] connection.py:178 Connection b'493d3773-8122-48b1-a634-abd83d0925dc' state changed from <ConnectionState.HDR_SENT: 2> to <ConnectionState.HDR_EXCH: 3>\r\n2019-01-04 09:44:14,915 [connection] connection.py:260 b'-> [OPEN]* {493d3773-8122-48b1-a634-abd83d0925dc,my-service-bus.servicebus.windows.net,65536,65535}'\r\n2019-01-04 09:44:14,915 [connection] connection.py:178 Connection b'493d3773-8122-48b1-a634-abd83d0925dc' state changed from <ConnectionState.HDR_EXCH: 3> to <ConnectionState.OPEN_SENT: 7>\r\n2019-01-04 09:44:15,400 [connection] connection.py:260 b'<- [OPEN]* {51434d6c5b2c4c319b7e2aebbb04caa6_G33,NULL,65536,4999,240000,NULL,NULL,NULL,NULL,NULL}'\r\n2019-01-04 09:44:15,400 [connection] connection.py:178 Connection b'493d3773-8122-48b1-a634-abd83d0925dc' state changed from <ConnectionState.OPEN_SENT: 7> to <ConnectionState.OPENED: 9>\r\n2019-01-04 09:44:15,400 [connection] connection.py:260 b'-> [BEGIN]* {NULL,0,65536,65536,4294967295}'\r\n2019-01-04 09:44:15,804 [connection] connection.py:260 b'<- [BEGIN]* {0,1,5000,65536,255,NULL,NULL,NULL}'\r\n2019-01-04 09:44:15,805 [connection] connection.py:260 b'-> [ATTACH]* {$cbs-sender,0,false,0,0,* {$cbs},* {$cbs},NULL,NULL,0,0}'\r\n2019-01-04 09:44:15,805 [connection] connection.py:260 b'-> [ATTACH]* {$cbs-receiver,1,true,0,0,* {$cbs},* {$cbs},NULL,NULL,NULL,0}'\r\n2019-01-04 09:44:16,316 [connection] connection.py:260 b'<- [ATTACH]* {$cbs-sender,0,true,0,0,* {$cbs,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL},* {$cbs,NULL,NULL,NULL,NULL,NULL,NULL},NULL,NULL,NULL,18446744073709551615,NULL,NULL,NULL}'\r\n2019-01-04 09:44:16,316 [connection] connection.py:260 Destroying cSource\r\n2019-01-04 09:44:16,316 [connection] connection.py:260 Destroying cTarget\r\n2019-01-04 09:44:16,316 [connection] connection.py:260 Deallocating cSource\r\n2019-01-04 09:44:16,316 [connection] connection.py:260 Destroying cSource\r\n2019-01-04 09:44:16,316 [connection] connection.py:260 Deallocating cTarget\r\n2019-01-04 09:44:16,316 [connection] connection.py:260 Destroying cTarget\r\n2019-01-04 09:44:16,317 [connection] connection.py:260 b'<- [FLOW]* {0,5000,1,65536,0,0,100,0,NULL,false,NULL}'\r\n2019-01-04 09:44:16,317 [connection] connection.py:260 b'-> [TRANSFER]* {0,0,<01 00 00 00>,0,false,false}'\r\n2019-01-04 09:44:16,575 [connection] connection.py:260 b'<- [ATTACH]* {$cbs-receiver,1,false,0,0,* {$cbs,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL},* {$cbs,NULL,NULL,NULL,NULL,NULL,NULL},NULL,NULL,0,18446744073709551615,NULL,NULL,NULL}'\r\n2019-01-04 09:44:16,575 [connection] connection.py:260 Destroying cSource\r\n2019-01-04 09:44:16,575 [connection] connection.py:260 Destroying cTarget\r\n2019-01-04 09:44:16,575 [connection] connection.py:260 Deallocating cSource\r\n2019-01-04 09:44:16,575 [connection] connection.py:260 Destroying cSource\r\n2019-01-04 09:44:16,575 [connection] connection.py:260 Deallocating cTarget\r\n2019-01-04 09:44:16,575 [connection] connection.py:260 Destroying cTarget\r\n2019-01-04 09:44:16,575 [connection] connection.py:260 b'-> [FLOW]* {1,65536,1,65535,1,0,10000}'\r\n2019-01-04 09:44:16,575 [connection] connection.py:260 CBS for connection b'493d3773-8122-48b1-a634-abd83d0925dc' completed opening with status: 0\r\n2019-01-04 09:44:16,839 [connection] connection.py:260 b'<- [DISPOSITION]* {true,0,NULL,true,* {},NULL}'\r\n2019-01-04 09:44:17,088 [connection] connection.py:260 b'<- [TRANSFER]* {1,0,<01 00 00 00>,0,NULL,false,NULL,NULL,NULL,NULL,false}'\r\n2019-01-04 09:44:17,088 [connection] connection.py:260 Token put complete with result: 0, status: 202, description: b'Accepted', connection: b'493d3773-8122-48b1-a634-abd83d0925dc'\r\n2019-01-04 09:44:17,088 [connection] connection.py:260 b'-> [DISPOSITION]* {true,0,0,true,* {}}'\r\n2019-01-04 09:44:17,088 [receiver] receiver.py:92 Wrapping value type: <AMQPType.CompositeType: 22>\r\n2019-01-04 09:44:17,089 [receiver] receiver.py:93 Wrapping value type: <AMQPType.CompositeType: 22>\r\n2019-01-04 09:44:17,090 [receiver] receiver.py:296 Message receiver b'receiver-link-a7affd27-1a12-43c3-9c50-e22bc33139cc' state changed from <MessageReceiverState.Idle: 0> to <MessageReceiverState.Opening: 1> on connection: b'493d3773-8122-48b1-a634-abd83d0925dc'\r\n2019-01-04 09:44:17,090 [receiver] receiver.py:275 b'-> [ATTACH]* {receiver-link-a7affd27-1a12-43c3-9c50-e22bc33139cc,2,true,0,1,* {amqps://my-service-bus.servicebus.windows.net/test-amqp,NULL,NULL,NULL,NULL,NULL,NULL,{[com.microsoft:session-filter:SessionId]}},* {493d3773-8122-48b1-a634-abd83d0925dc},NULL,NULL,NULL,262144}'\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 b'<- [ATTACH]* {receiver-link-a7affd27-1a12-43c3-9c50-e22bc33139cc,2,false,NULL,1,* {amqps://my-service-bus.servicebus.windows.net/test-amqp,NULL,NULL,NULL,NULL,NULL,NULL,{[com.microsoft:session-filter:SessionId]},NULL,NULL,NULL},* {493d3773-8122-48b1-a634-abd83d0925dc,NULL,NULL,NULL,NULL,NULL,NULL},NULL,NULL,0,262144,NULL,NULL,{[com.microsoft:locked-until-utc:636821630625849499]}}'\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 Wrapping value type: <AMQPType.DictValue: 19>\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 Destroying cSource\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 Destroying cTarget\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 Deallocating cSource\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 Destroying cSource\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 Deallocating cTarget\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 Destroying cTarget\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 Deallocating 'DictValue'\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 Destroying 'DictValue'\r\n2019-01-04 09:44:17,695 [connection] connection.py:260 b'-> [FLOW]* {2,65535,1,65535,2,0,20}'\r\n2019-01-04 09:44:17,696 [receiver] receiver.py:296 Message receiver b'receiver-link-a7affd27-1a12-43c3-9c50-e22bc33139cc' state changed from <MessageReceiverState.Opening: 1> to <MessageReceiverState.Open: 2> on connection: b'493d3773-8122-48b1-a634-abd83d0925dc'\r\n2019-01-04 09:45:13,003 [receiver] receiver.py:264 Destroying cMessageReceiver\r\n2019-01-04 09:45:13,003 [receiver] receiver.py:296 Message receiver b'receiver-link-a7affd27-1a12-43c3-9c50-e22bc33139cc' state changed from <MessageReceiverState.Open: 2> to <MessageReceiverState.Closing: 3> on connection: b'493d3773-8122-48b1-a634-abd83d0925dc'\r\n2019-01-04 09:45:13,003 [receiver] receiver.py:264 b'-> [DETACH]* {2,true}'\r\n2019-01-04 09:45:13,004 [receiver] receiver.py:265 Destroying cLink\r\n2019-01-04 09:45:13,004 [client] client.py:263 Deallocating 'CompositeValue'\r\n2019-01-04 09:45:13,004 [client] client.py:263 Destroying 'CompositeValue'\r\n2019-01-04 09:45:13,004 [client] client.py:263 Deallocating 'CompositeValue'\r\n2019-01-04 09:45:13,005 [client] client.py:263 Destroying 'CompositeValue'\r\n2019-01-04 09:45:13,005 [client] client.py:263 Deallocating cLink\r\n2019-01-04 09:45:13,005 [client] client.py:263 Deallocating cMessageReceiver\r\n2019-01-04 09:45:13,005 [client] client.py:274 CBS session pending.\r\n2019-01-04 09:45:13,005 [client] client.py:277 Closing exclusive connection.\r\n2019-01-04 09:45:13,005 [connection] connection.py:217 Unlocked connection b'493d3773-8122-48b1-a634-abd83d0925dc' to close.\r\n2019-01-04 09:45:13,005 [connection] connection.py:130 Shutting down connection b'493d3773-8122-48b1-a634-abd83d0925dc'.\r\n2019-01-04 09:45:13,006 [cbs_auth] cbs_auth.py:82 Shutting down CBS session on connection: b'493d3773-8122-48b1-a634-abd83d0925dc'.\r\n2019-01-04 09:45:13,006 [cbs_auth] cbs_auth.py:84 Unlocked CBS to close on connection: b'493d3773-8122-48b1-a634-abd83d0925dc'.\r\n2019-01-04 09:45:13,006 [cbs_auth] cbs_auth.py:85 Destroying CBSTokenAuth for connection b'493d3773-8122-48b1-a634-abd83d0925dc'\r\n2019-01-04 09:45:13,006 [cbs_auth] cbs_auth.py:85 b'-> [DETACH]* {0,true}'\r\n2019-01-04 09:45:13,006 [cbs_auth] cbs_auth.py:85 b'-> [DETACH]* {1,true}'\r\n2019-01-04 09:45:13,006 [cbs_auth] cbs_auth.py:86 Auth closed, destroying session on connection: b'493d3773-8122-48b1-a634-abd83d0925dc'.\r\n2019-01-04 09:45:13,006 [session] session.py:135 Destroying cSession\r\n2019-01-04 09:45:13,006 [session] session.py:135 b'-> [END]* {}'\r\n2019-01-04 09:45:13,006 [cbs_auth] cbs_auth.py:89 Finished shutting down CBS session on connection: b'493d3773-8122-48b1-a634-abd83d0925dc'.\r\n2019-01-04 09:45:13,006 [connection] connection.py:135 Destroying Connection\r\n2019-01-04 09:45:13,007 [connection] connection.py:135 b'-> [CLOSE]* {}'\r\n2019-01-04 09:45:13,007 [connection] connection.py:178 Connection b'493d3773-8122-48b1-a634-abd83d0925dc' state changed from <ConnectionState.OPENED: 9> to <ConnectionState.END: 13>\r\n2019-01-04 09:45:13,010 [common] common.py:94 Destroying SASLMechanism\r\n2019-01-04 09:45:13,010 [common] common.py:95 Destroying XIO\r\n2019-01-04 09:45:13,010 [common] common.py:96 Destroying XIO\r\n2019-01-04 09:45:13,010 [connection] connection.py:137 Connection shutdown complete b'493d3773-8122-48b1-a634-abd83d0925dc'.\r\n2019-01-04 09:45:13,010 [__init__] __init__.py:160 Deinitializing platform.\r\n2019-01-04 09:45:13,011 [amqp] amqp.py:51 Deallocating XIO\r\n2019-01-04 09:45:13,011 [amqp] amqp.py:51 Destroying XIO\r\n2019-01-04 09:45:13,011 [amqp] amqp.py:51 Deallocating SASLMechanism\r\n2019-01-04 09:45:13,011 [amqp] amqp.py:51 Destroying SASLMechanism\r\n2019-01-04 09:45:13,011 [amqp] amqp.py:51 Deallocating XIO\r\n2019-01-04 09:45:13,011 [amqp] amqp.py:51 Destroying XIO\r\n2019-01-04 09:45:13,011 [amqp] amqp.py:51 Deallocating cSource\r\n2019-01-04 09:45:13,012 [amqp] amqp.py:51 Destroying cSource\r\n2019-01-04 09:45:13,012 [amqp] amqp.py:51 Deallocating 'StringValue'\r\n2019-01-04 09:45:13,012 [amqp] amqp.py:51 Destroying 'StringValue'\r\n2019-01-04 09:45:13,020 [(unknown file)] (unknown file):0 Deallocating XIO\r\n2019-01-04 09:45:13,020 [(unknown file)] (unknown file):0 Deallocating SASLMechanism\r\n2019-01-04 09:45:13,020 [(unknown file)] (unknown file):0 Deallocating XIO\r\n2019-01-04 09:45:13,020 [(unknown file)] (unknown file):0 Deallocating Connection\r\n2019-01-04 09:45:13,020 [(unknown file)] (unknown file):0 Deallocating cSession\r\n2019-01-04 09:45:13,020 [(unknown file)] (unknown file):0 Deallocating CBSTokenAuth\r\n```\r\n\r\nthe portal shows it has 4 messages there:\r\n![general_settings_-_microsoft_azure](https://user-images.githubusercontent.com/24366323/50670331-e25ae780-1005-11e9-9d24-d4c7757d5978.png)"}}
{"actor":{"display_login":"silencev"}}