我在捆包邮件中尝试了我的第一个机器人,但我无法面对这个错误。这里有人帮我吗?
2018-05-05 11:13:47,938 network.py:112 WARNING:"network connection disconnected."
2018-05-05 11:13:47,939 network.py:36 ERROR:"connect error: 500, message='Invalid response status'"
Traceback (most recent call last):
File "/home/ehsan/PycharmProjects/example_bots/venv/lib/python3.5/site-packages/balebot/connection/network.py", line 31, in connect self._ws = await self._session.ws_connect(self.construct_url())
File "/home/ehsan/PycharmProjects/example_bots/venv/lib/python3.5/site-packages/aiohttp/helpers.py", line 109, in __await__ ret = yield from self._coro
File "/home/ehsan/PycharmProjects/example_bots/venv/lib/python3.5/site-packages/aiohttp/client.py", line 465, in _ws_connect
headers=resp.headers) aiohttp.client_exceptions.WSServerHandshakeError: 500, message='Invalid response status'
答案 0 :(得分:6)
似乎您使用websocket将您的bot连接到服务器。现在是握手错误。确保你从botfather给出的令牌是正确的。如果没有问题,可能是您的服务器地址。