Full error message: Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
I run into this issue immediately upon running. Its an home office network, I will contact my IT team tomorrow to see if the firewall thats in place is interfering with the connection the code is trying to make - is the firewall the reason for this? Will disabling it from my IP make the thing work?
No I have not tried using a different network.
Yes I am only printing ticks in the on_ticks funtion and nothing else.
yes, that is the entire error traceback. It repeats after every 3 or so seconds. I am contacting my IT team regarding the firewall and will let you know whats up asap @sujith@rakeshr
Clear view of the code and the error I get in the console
The console returns this, for further context:
runfile('/Users/apple/Desktop/AT/streaming_tick_data.py', wdir='/Users/apple/Desktop/AT') Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code) Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code) Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code) Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code) Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code) Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
No I have not tried using a different network.
Yes I am only printing ticks in the on_ticks funtion and nothing else.
You can try another network and let us know the behavior.
@sujith @rakeshr
The console returns this, for further context:
runfile('/Users/apple/Desktop/AT/streaming_tick_data.py', wdir='/Users/apple/Desktop/AT')
Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
(I stopped the code here)
I have a solution. Its because my token function returns a Nonetype and it has to be an int.