Skip to content

Instantly share code, notes, and snippets.

@gronnbeck
Created July 22, 2012 15:52
Show Gist options
  • Save gronnbeck/3160076 to your computer and use it in GitHub Desktop.
Save gronnbeck/3160076 to your computer and use it in GitHub Desktop.
Debug outprint
2012-07-22 17:52:06+0200 [HTTPConnection,1,127.0.0.1] Using ws spec (draft 17)
2012-07-22 17:52:06+0200 [HTTPConnection,1,127.0.0.1] Someone connected {u'user_id': 3907156748, u'is_admin': True, u'email': u'admin@hoopla.no', u'organizations': [], u'data': None}
2012-07-22 17:52:06+0200 [HTTPConnection,1,127.0.0.1] Received {"subscribe":{"events":{"1177052212":0}}}
2012-07-22 17:52:06+0200 [HTTPConnection,1,127.0.0.1] bumping timer
2012-07-22 17:52:06+0200 [HTTPConnection,1,127.0.0.1] Handling subscribe.
2012-07-22 17:52:06+0200 [HTTPConnection,1,127.0.0.1] Waiting for event_hose
2012-07-22 17:52:06+0200 [-] Organization IDs for events: set([])
2012-07-22 17:52:06+0200 [-] Subscribing to {u'1177052212': 0}
2012-07-22 17:52:06+0200 [-] Getting missing events for {1177052212: 0}
2012-07-22 17:52:06+0200 [-] Finding tickets and beeps for 1177052212 with txid >= 0
2012-07-22 17:52:06+0200 [-] bumping timer
2012-07-22 17:52:06+0200 [-] Starting listening loop
2012-07-22 17:53:16+0200 [-] Stopping
2012-07-22 17:53:16+0200 [-] Lost connection.
2012-07-22 17:53:16+0200 [-] Closing connection
2012-07-22 17:53:16+0200 [-] 200 GET /api/v0/_sync (127.0.0.1) 70032.53ms
2012-07-22 17:53:16+0200 [HTTPConnection,1,127.0.0.1] Unhandled Error
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite
why = getattr(selectable, method)()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/tcp.py", line 460, in doRead
rval = self.protocol.dataReceived(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/protocols/basic.py", line 572, in dataReceived
return self.rawDataReceived(data)
File "/Users/gronnbeck/Development/hoopla/src/piped/eggs/cyclone-1.0_rc8-py2.7.egg/cyclone/websocket.py", line 177, in rawDataReceived
self.sendMessage(self._message_buffer, code=0x88)
File "/Users/gronnbeck/Development/hoopla/src/piped/eggs/cyclone-1.0_rc8-py2.7.egg/cyclone/websocket.py", line 250, in sendMessage
message = unicode(message, "utf-8")
exceptions.UnicodeDecodeError: 'utf8' codec can't decode byte 0xe8 in position 1: unexpected end of data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment