首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >本地项目一部署到云端websocket就出问题?

本地项目一部署到云端websocket就出问题?

提问于 2019-07-30 10:22:52
回答 2关注 0查看 570

[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也没问题,就是这个报错

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档