Home > other >  Python to use socketio - client connection, no response
Python to use socketio - client connection, no response

Time:04-28

When a connection is established using socketio there has been no response
SocketIO=socketIO (TRADING_API_URL WEBSOCKET_PORT, params={" access_token ", access_token})
This line of code has been run, but there is no reaction, can only forced interruption, after the interruption

^ CTraceback (the most recent call last) :
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ IPython \ core \ interactiveshell py", line 2881, in run_code
Exec (code_obj, self user_global_ns, self user_ns)
File "
SocketIO=socketIO (TRADING_API_URL WEBSOCKET_PORT, params={" access_token ", access_token})
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ set py", line 353, in __init__
The resource, hurry_interval_in_seconds, * * kw)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ set py", line 54, in __init__
Self. _transport
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ set py", line 62, in _transport
Self. _engineIO_session=self. _get_engineIO_session ()
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ set py", line 76, in _get_engineIO_session
Transport. Recv_packet ())
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ transports py", line 82, in recv_packet
* * self. _kw_get)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ transports py", line 176, in get_response
The response=request (* args, stream=True, * * kw)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ requests \ sessions py", line 537, in the get
Return the self. The request (' GET 'url, * * kwargs)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ requests \ sessions py", line 524, in the request
Resp=self. Send (prep, * * send_kwargs)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ requests \ sessions py", line 637, in the send
R=adapter. Send (request, * * kwargs)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ requests \ adapters py", line 449, in the send
Timeout=timeout
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ urllib3 \ connectionpool py", line 600, in urlopen
Chunked=chunked)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ urllib3 \ connectionpool py", line 343, in _make_request
Self. _validate_conn (conn)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ urllib3 \ connectionpool py", line 839, in _validate_conn
Conn. The connect ()
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ urllib3 \ connection py", line 301, in the connect
Conn=self. _new_conn ()
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ urllib3 \ connection py", line 159, in _new_conn
(self. _dns_host, the self. The port), the self. The timeout, * * extra_kw)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ urllib3 \ util \ connection py", line 70, in create_connection
The sock. Connect (sa)
KeyboardInterrupt
SocketIO=socketIO (TRADING_API_URL WEBSOCKET_PORT, params={" access_token ", access_token})
^ CTraceback (the most recent call last) :
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ IPython \ core \ interactiveshell py", line 2881, in run_code
Exec (code_obj, self user_global_ns, self user_ns)
File "
SocketIO=socketIO (TRADING_API_URL WEBSOCKET_PORT, params={" access_token ", access_token})
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ set py", line 353, in __init__
The resource, hurry_interval_in_seconds, * * kw)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ set py", line 54, in __init__
Self. _transport
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ set py", line 62, in _transport
Self. _engineIO_session=self. _get_engineIO_session ()
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ set py", line 76, in _get_engineIO_session
Transport. Recv_packet ())
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ transports py", line 82, in recv_packet
* * self. _kw_get)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ socketIO_client \ transports py", line 176, in get_response
The response=request (* args, stream=True, * * kw)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ requests \ sessions py", line 537, in the get
Return the self. The request (' GET 'url, * * kwargs)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ requests \ sessions py", line 524, in the request
Resp=self. Send (prep, * * send_kwargs)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ requests \ sessions py", line 637, in the send
R=adapter. Send (request, * * kwargs)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ requests \ adapters py", line 449, in the send
Timeout=timeout
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ urllib3 \ connectionpool py", line 600, in urlopen
Chunked=chunked)
The File "D: \ Anaconda3 \ envs \ py27 \ lib \ site - packages \ urllib3 \ connectionpool py", line 343, in _make_request
Self. _validate_conn (conn)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related