[INFO] (client.py:159)_bot_login [botpy] 登录机器人账号中...
[WARNING] (http.py:188)request 请求超时,请求连接: https://api.sgroup.qq.com/gateway/bot
Traceback (most recent call last):
File "/home/keyblue/PythonProject/qqbot-demo/bot2.py", line 331, in <module>
client.run(appid=config['qqbot']['appid'], token=config['qqbot']['token'])
File "/home/keyblue/.conda/envs/qqbot/lib/python3.10/site-packages/botpy/client.py", line 132, in run
self.loop.run_until_complete(runner())
File "/home/keyblue/.conda/envs/qqbot/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/keyblue/.conda/envs/qqbot/lib/python3.10/site-packages/botpy/client.py", line 129, in runner
await self.start(*args, **kwargs)
File "/home/keyblue/.conda/envs/qqbot/lib/python3.10/site-packages/botpy/client.py", line 155, in start
await self._bot_login(token)
File "/home/keyblue/.conda/envs/qqbot/lib/python3.10/site-packages/botpy/client.py", line 168, in _bot_login
max_async=self._ws_ap["session_start_limit"]["max_concurrency"],
TypeError: 'NoneType' object is not subscriptable
windows下没有这个问题