# Error during self.channel\_layer.group\_add

**URL:** <https://forum.djangoproject.com/t/error-during-self-channel-layer-group-add/44731>\
**Category:** Async/Channels\
**Created:** [March 27, 2026, 2:31pm UTC](https://forum.djangoproject.com/t/error-during-self-channel-layer-group-add/44731 "2026-03-27T14:31:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 27, 2026, 3:49pm UTC](https://forum.djangoproject.com/t/error-during-self-channel-layer-group-add/44731/4 "2026-03-27T15:49:05Z")

</div>

One more thing to try:

In the shell, run the following commands and report back what the results are:

(No output is expected from this first command)  
`import socket`

`socket.gethostname()`

`socket.getfqdn()`

`socket.getfqdn('127.0.0.1')`

(Side note: I cribbed this from [Encoding with 'idna' codec failed (UnicodeError: label empty or too long) - #12 by KenWhitesell](https://forum.djangoproject.com/t/encoding-with-idna-codec-failed-unicodeerror-label-empty-or-too-long/20568/12))

---

_[View the full topic](https://forum.djangoproject.com/t/error-during-self-channel-layer-group-add/44731)._
