Created
November 10, 2011 13:18
-
-
Save wulczer/1354828 to your computer and use it in GitHub Desktop.
txpostgres error reporting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wulczer@hella:~/src/txpostgres$ git show-ref HEAD | |
d13f8ff5381f83a3521fc5067f5f310eba73fe73 refs/remotes/origin/HEAD | |
wulczer@hella:~/src/txpostgres$ python -c "import txpostgres; print txpostgres" | |
<module 'txpostgres' from 'txpostgres/__init__.pyc'> | |
wulczer@hella:~/src/txpostgres$ python txpostgres_error.py -n localhost -d twisted_test -u twisted_test -p twisted_test | |
<class 'psycopg2.ProgrammingError'> relation "nonexistent" does not exist | |
LINE 1: select * from nonexistent | |
^ | |
42P01 | |
ERROR: relation "nonexistent" does not exist | |
LINE 1: select * from nonexistent | |
^ | |
wulczer@hella:~/src/txpostgres$ python txpostgres_error.py -n localhost -d twisted_test -u twisted_test -p badpwd | |
<class 'psycopg2.OperationalError'> asynchronous connection failed | |
None | |
None | |
<class 'psycopg2.OperationalError'> asynchronous connection failed | |
None | |
None | |
Unhandled Error | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 286, in addCallbacks | |
self._runCallbacks() | |
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 542, in _runCallbacks | |
current.result = callback(current.result, *args, **kw) | |
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 426, in _continueFiring | |
callable(*args, **kwargs) | |
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 615, in disconnectAll | |
failure.Failure(main.CONNECTION_LOST)) | |
--- <exception caught here> --- | |
File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 84, in callWithLogger | |
return callWithContext({"system": lp}, func, *args, **kw) | |
File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 69, in callWithContext | |
return context.call({ILogContext: newCtx}, func, *args, **kw) | |
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext | |
return self.currentContext().callWithContext(ctx, func, *args, **kw) | |
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext | |
return func(*args,**kw) | |
File "/home/wulczer/src/txpostgres/txpostgres/txpostgres.py", line 170, in connectionLost | |
self.continuePolling() | |
File "/home/wulczer/src/txpostgres/txpostgres/txpostgres.py", line 108, in continuePolling | |
state = self.pollable().poll() | |
psycopg2.OperationalError: asynchronous connection failed | |
wulczer@hella:~/src/txpostgres$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment