Hi,
I like python since more then ten years. Up to now I did non-async programming and it was always quite easy to find
the root (bug) of an exception.
Current problem:
2013-11-29 14:18:51 pulsar: ERROR [14026] Unhandled exception in event loop callback.
Traceback (most recent call last):
File "/home/foo_eins_dmes/src/pulsar/pulsar/async/eventloop.py", line 680, in _run_once
value = callback()
File "/home/foo_eins_dmes/src/pulsar/pulsar/async/pollers.py", line 168, in handle_events
error()
File "/home/foo_eins_dmes/src/pulsar/pulsar/async/eventloop.py", line 142, in __call__
return self._callback(*args, **kwargs)
File "/home/foo_eins_dmes/src/pulsar/pulsar/async/stream.py", line 501, in sock_connect
return future.callback(exc)
File "/home/foo_eins_dmes/src/pulsar/pulsar/async/defer.py", line 670, in callback
raise InvalidStateError
InvalidStateError
How can I find the root of the problem here?
The only part which is from me, is "callback" in the upper most traceback line.
If I modify eventloop in line 680 and add a "print callback" I get this:
<functools.partial object at 0x1876d08>
... OK, now I write to this list and ask the experts.
How do you debug exceptions like this?
Background:
I tried different async frameworks during the last days (tornado, Autobahn(twisted) and pulsar).
And for me, error handling and logging is quite difficult in all of them.
Pulsar looks clean, up to date and well documented (thumbs up)
Thomas