Skip to content

TypeError: expected a readable buffer object #3

@colegleason

Description

@colegleason

When running a script, I sometimes get the following error

Entering handler_loop
Traceback (most recent call last):
  File "subtitles.py", line 51, in <module>
    wearscript.parse(callback, argparse.ArgumentParser())
  File "/Users/cole/code/subs/venv/src/wearscript/wearscript/__init__.py", line 14, in parse
    args.func_(callback, **vargs)
  File "/Users/cole/code/subs/venv/src/wearscript/wearscript/socket.py", line 222, in websocket_client_factory
    callback(WebSocketClientConnection(websocket.create_connection(client_endpoint)), **kw)
  File "subtitles.py", line 50, in callback
    ws.handler_loop()
  File "/Users/cole/code/subs/venv/src/wearscript/wearscript/socket.py", line 100, in handler_loop
    d = self.receive()
  File "/Users/cole/code/subs/venv/src/wearscript/wearscript/socket.py", line 202, in receive
    return msgpack.loads(self.ws.recv())
  File "_unpacker.pyx", line 105, in msgpack._unpacker.unpackb (msgpack/_unpacker.cpp:105)
TypeError: expected a readable buffer object

Is this related to changes in the wire format?

Relevant code here: https://gist.github.com/colegleason/9401095

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions