Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when replying to a channel post. #15

Open
tkoski opened this issue Jun 14, 2012 · 3 comments
Open

Crash when replying to a channel post. #15

tkoski opened this issue Jun 14, 2012 · 3 comments
Labels

Comments

@tkoski
Copy link

tkoski commented Jun 14, 2012

bccc$ bccc

Traceback (most recent call last):
File "/usr/local/bin/bccc", line 8, in
exec(compile(open(file).read(), file, 'exec'))
File "/home/tkoski/tmp/bccc/bin/bccc", line 97, in
ui.run()
File "/home/tkoski/tmp/bccc/bccc/ui/ui.py", line 101, in run
self.loop.run()
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/main_loop.py", line 274, in run
self.screen.run_wrapper(self._run)
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/raw_display.py", line 237, in run_wrapper
return fn()
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/main_loop.py", line 307, in _run
self.event_loop.run()
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/main_loop.py", line 682, in run
self._loop()
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/main_loop.py", line 720, in _loop
self._watch_filesfd
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/main_loop.py", line 358, in _update
self.process_input(keys)
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/main_loop.py", line 447, in process_input
k = self._topmost_widget.keypress(self.screen_size, k)
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/container.py", line 641, in keypress
return self.body.keypress( (maxcol, remaining), key )
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/container.py", line 1390, in keypress
key = w.keypress( (mc,)+size[1:], key )
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/container.py", line 641, in keypress
return self.body.keypress( (maxcol, remaining), key )
File "/home/tkoski/tmp/bccc/bccc/ui/thread.py", line 365, in keypress
key = super().keypress(size, key)
File "/usr/local/lib/python3.2/dist-packages/urwid-1.0.1-py3.2-linux-x86_64.egg/urwid/listbox.py", line 764, in keypress
key = focus_widget.keypress((maxcol,),key)
File "/home/tkoski/tmp/bccc/bccc/ui/util.py", line 41, in keypress
self.validate()
File "/home/tkoski/tmp/bccc/bccc/ui/item.py", line 168, in validate
return super().validate(_args, in_reply_to=self.thread_id, *_kwds)
File "/home/tkoski/tmp/bccc/bccc/ui/item.py", line 151, in validate
self.channel.publish(text, _args, *_kwds)
File "/home/tkoski/tmp/bccc/bccc/client/channel.py", line 245, in publish
res = self.client.ps.publish(self.client.channels_jid, node, payload=entry)
File "/usr/local/lib/python3.2/dist-packages/sleekxmpp-1.0-py3.2.egg/sleekxmpp/plugins/xep_0060/pubsub.py", line 340, in publish
return iq.send(block=block, callback=callback, timeout=timeout)
File "/usr/local/lib/python3.2/dist-packages/sleekxmpp-1.0-py3.2.egg/sleekxmpp/stanza/iq.py", line 205, in send
raise IqError(result)
sleekxmpp.exceptions.IqError

I can reproduce this.

@Schnouki
Copy link
Owner

I'm guessing you are trying to post to a channel for which you are not a publisher... I know this, it's on the TODO list (as "handle errors") :)

@tkoski
Copy link
Author

tkoski commented Jun 14, 2012

I think the error occurs because I should not be able to write to that channel.

@tkoski
Copy link
Author

tkoski commented Jun 14, 2012

@Schnouki You are right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants