{"action":"closed","issue":{"url":"https://api.github.com/repos/django/channels/issues/1104","repository_url":"https://api.github.com/repos/django/channels","labels_url":"https://api.github.com/repos/django/channels/issues/1104/labels{/name}","comments_url":"https://api.github.com/repos/django/channels/issues/1104/comments","events_url":"https://api.github.com/repos/django/channels/issues/1104/events","html_url":"https://github.com/django/channels/issues/1104","id":341277820,"node_id":"MDU6SXNzdWUzNDEyNzc4MjA=","number":1104,"title":"Cannot input string variable as group name in channel_layer.group_send","user":{"login":"adszzxc","id":40645539,"node_id":"MDQ6VXNlcjQwNjQ1NTM5","avatar_url":"https://avatars0.githubusercontent.com/u/40645539?v=4","gravatar_id":"","url":"https://api.github.com/users/adszzxc","html_url":"https://github.com/adszzxc","followers_url":"https://api.github.com/users/adszzxc/followers","following_url":"https://api.github.com/users/adszzxc/following{/other_user}","gists_url":"https://api.github.com/users/adszzxc/gists{/gist_id}","starred_url":"https://api.github.com/users/adszzxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adszzxc/subscriptions","organizations_url":"https://api.github.com/users/adszzxc/orgs","repos_url":"https://api.github.com/users/adszzxc/repos","events_url":"https://api.github.com/users/adszzxc/events{/privacy}","received_events_url":"https://api.github.com/users/adszzxc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-14T23:16:00Z","updated_at":"2018-07-16T00:00:37Z","closed_at":"2018-07-16T00:00:37Z","author_association":"NONE","body":"Ubuntu 16.04\r\nChannels 2.1.2\r\nDaphne 2.2.0\r\nTwisted 18.4.0\r\nDjango 2.0.7\r\nPython 3.5.2\r\n\r\nProject is ran by Nginx/Gunicorn in front, Channels is running with runserver\r\n\r\nIn case of my app, each Profile object has a string called usercode. Consumer uses that string to add channels to the group of the user (multiple clients in mind). \r\nI'm trying to send a message from view, but the same thing happens from shell.\r\nIn this case, `e1cfb86161` is one of these strings.\r\n```\r\nchannel_layer = get_channel_layer()\r\nasync_to_sync(channel_layer.group_send)(\"e1cfb86161\",{\"type\":\"chat.message\", \"text\":\"what's up?\"})\r\n```\r\n\r\nThis works no problem, the message reaches listening client. But:\r\n```\r\nchannel_layer = get_channel_layer()\r\nchat_name = \"e1cfb86161\"\r\nasync_to_sync(channel_layer.group_send)(chat_name,{\"type\":\"chat.message\", \"text\":\"what's up?\"})\r\n```\r\n\r\nDoes not. Neither does this: (tom.usercode returns a string)\r\n```\r\nchannel_layer = get_channel_layer()\r\nasync_to_sync(channel_layer.group_send)(tom.usercode,{\"type\":\"chat.message\", \"text\":\"what's up?\"})\r\n```\r\nI can't figure why that is. I think it's just a bug, passing `str(tom.usercode)` doesn't help either. There are no logs to the console. Method gets executed, but there's absolutely no feedback to the log as if it executed correctly."}}
{"actor":{"display_login":"adszzxc"}}