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

__on_error() missing 1 required positional argument: 'message' #12

Open
sundevilyang opened this issue Jan 23, 2020 · 2 comments
Open

Comments

@sundevilyang
Copy link

Hey,
after run python main.py --demo --strategy Doten command, it showed the following error

2020-01-23 12:23:59,361 - INFO - Bot Mode : Trade
2020-01-23 12:23:59,363 - INFO - Starting Bot
2020-01-23 12:23:59,363 - INFO - Strategy : Doten
2020-01-23 12:25:14,856 - ERROR - error from callback <bound method BitMexWs.__on_error of <src.bitmex_websocket.BitMexWs object at 0x1370ccb00>>: __on_error() missing 1 required positional argument: 'message'
2020-01-23 12:25:14,856 - ERROR - error from callback <bound method BitMexWs.__on_close of <src.bitmex_websocket.BitMexWs object at 0x1370ccb00>>: __on_close() missing 1 required positional argument: 'ws'
Traceback (most recent call last):
  File "/Users/ywen8/.pyenv/versions/3.6.5/lib/python3.6/site-packages/urllib3/connection.py", line 157, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/Users/ywen8/.pyenv/versions/3.6.5/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
  File "/Users/ywen8/.pyenv/versions/3.6.5/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 60] Operation timed out
@haikalfouzi
Copy link

try downgrading websocket
BitMEX/sample-market-maker#166 (comment)

@erocitna
Copy link

I think using older version of websocket-client like 0.52.0 works. Try uninstalling the one you are using and installing 0.52.0.

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

No branches or pull requests

3 participants