wee-slack: Latest master does not load messages
Hi.
With the current latest commit on master, the messages do not load.
No messages are in the slack-debug buffer, but there are the following errors in the core buffer:
Error: a buffer with same name (url.slack.com.#channel) already exists
# […] a bunch of other errors "a buffer with same name…"
Connected to Slack team adgear (url.slack.com) with username antoyo
python: stdout/stderr (slack): Traceback (most recent call last):
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 630, in handle_next
python: stdout/stderr (slack): EVENTROUTER.handle_next()
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 618, in handle_next
python: stdout/stderr (slack): self.handlers[function_name](j, self, **kwargs)
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 2764, in handle_conversationsmembers
python: stdout/stderr (slack): channel.members = set(members_json['members'])
python: stdout/stderr (slack): KeyError: u'members'
python: stdout/stderr (slack): Traceback (most recent call last):
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 630, in handle_next
python: stdout/stderr (slack): EVENTROUTER.handle_next()
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 618, in handle_next
python: stdout/stderr (slack): self.handlers[function_name](j, self, **kwargs)
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 2764, in handle_conversationsmembers
python: stdout/stderr (slack): channel.members = set(members_json['members'])
python: stdout/stderr (slack): KeyError: u'members'
python: stdout/stderr (slack): Traceback (most recent call last):
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 630, in handle_next
python: stdout/stderr (slack): EVENTROUTER.handle_next()
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 618, in handle_next
python: stdout/stderr (slack): self.handlers[function_name](j, self, **kwargs)
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 2764, in handle_conversationsmembers
python: stdout/stderr (slack): channel.members = set(members_json['members'])
python: stdout/stderr (slack): KeyError: u'members'
python: stdout/stderr (slack): Traceback (most recent call last):
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 630, in handle_next
python: stdout/stderr (slack): EVENTROUTER.handle_next()
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 618, in handle_next
python: stdout/stderr (slack): self.handlers[function_name](j, self, **kwargs)
python: stdout/stderr (slack): File "/home/antoyo/.weechat/python/autoload/wee_slack.py", line 2764, in handle_conversationsmembers
python: stdout/stderr (slack): channel.members = set(members_json['members'])
python: stdout/stderr (slack): KeyError: u'members'
Thanks to fix the issue.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (10 by maintainers)
Commits related to this issue
- Print user friendly error in handle_conversationsmembers Fixes parts of #714 — committed to wee-slack/wee-slack by trygveaa 5 years ago
- Preserve thread channels across reconnections and /rehistory Previously, the references to the thread channels and the hashes of the messages would be lost when the channel reloaded its history. That... — committed to wee-slack/wee-slack by trygveaa 4 years ago
This has now been fixed.
I’m using this workaround to avoid it:
It avoids the issue of losing messages and buffers, but it has some annoying drawbacks (duplicating all the messages when he fetches history, or merging threads when they happen to share the same hash), that’s why I don’t propose it as a PR yet.
Hi,
I’ve been having a similar issue lately, very often in threads. “Error: A buffer with the same name (…) already exists” in the weechat core window. It seems to happen quite randomly, but when this happens, I will no longer receive any new incoming message in this thread. Closing the buffer means I can never reopen it again 😕
Thanks!