[2019-07-30 10:05:37 +0800] [5817] [ERROR] Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 603, in handle_request
response = await response
File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 295, in websocket_handle
ws = await protocol.websocket_handshake(request, subprotocols)
File "/usr/local/lib/python3.5/dist-packages/sanic/websocket.py", line 69, in websocket_handshake
key = handshake.check_request(get_header)
File "/home/ubuntu/.local/lib/python3.5/site-packages/websockets/handshake.py", line 83, in check_request
connection = parse_connection(headers.get('Connection', ''))
AttributeError: 'function' object has no attribute 'get'
[2019-07-30 10:05:37 +0800] - (sanic.access)[INFO][113.57.237.8:4827]: GET ws://49.235.17.247:9001/register 500 144
云上配置了安全组9001端口打开了,其他常用端口也打开了,import websocket也没问题,就是这个报错
相似问题