Replies: 1 comment 1 reply
-
The server is rejecting the connection. You need to look at the server logs to see why. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The python environment is exactly the same on windows and ubuntu server but the code throws the following error on Ubuntu server
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/root/bpwealth/bpwealth_utils.py", line 177, in bpwealth_monitor_and_execute_orders
iordermanager.update({user: BpWealthOrderManager(db_engine, cliobj_dict[user],redis,token_dict[user],user, socket_url_dict[user])})
File "/root/bpwealth/bpwealth_order_manager.py", line 34, in init
self.init_sio_callbacks()
File "/root/bpwealth/bpwealth_order_manager.py", line 62, in init_sio_callbacks
Thread(target=self._init_sio_callbacks()).start()
File "/root/bpwealth/bpwealth_order_manager.py", line 59, in _init_sio_callbacks
self.sio.connect(url=self.connection_url, headers={}, transports="websocket")
File "/root/bpwealth/venv/lib/python3.8/site-packages/socketio/client.py", line 282, in connect
six.raise_from(exceptions.ConnectionError(exc.args[0]), None)
File "", line 3, in raise_from
socketio.exceptions.ConnectionError: Connection error
Can you help me figure out what the reason is .
Beta Was this translation helpful? Give feedback.
All reactions