We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我反复检查了好几遍,我的AppID和secret完全正确 完整报错信息: RuntimeError: {'code': 100002, 'message': 'internal err'}
我查看了robot.py,似乎每次请求都会向https://bots.qq.com/app/getAppAccessToken 获取access_token,如果请求超时,捕获asyncio.TimeoutError异常,并打印超时信息。如果响应数据中没有access_token或expires_in字段,打印错误信息并抛出RuntimeError异常。显然我遇到了第二种情况。当成功之后才会返回机器人的token。我目前还没找出解决办法。
The text was updated successfully, but these errors were encountered:
这个离谱的问题有个很离谱的原因:
async def start(self, appid: str, secret: str, ret_coro: bool = False)
也就是,app_id必须是str
给appid加个双引号就行了
Sorry, something went wrong.
这个离谱的问题有个很离谱的原因: async def start(self, appid: str, secret: str, ret_coro: bool = False) 也就是,app_id必须是str 给appid加个双引号就行了
试过,不行
解决方法 python:需要使用json库的dumps导出一下json到字符串,然后传入data参数
No branches or pull requests
我反复检查了好几遍,我的AppID和secret完全正确
完整报错信息:
RuntimeError: {'code': 100002, 'message': 'internal err'}
我查看了robot.py,似乎每次请求都会向https://bots.qq.com/app/getAppAccessToken 获取access_token,如果请求超时,捕获asyncio.TimeoutError异常,并打印超时信息。如果响应数据中没有access_token或expires_in字段,打印错误信息并抛出RuntimeError异常。显然我遇到了第二种情况。当成功之后才会返回机器人的token。我目前还没找出解决办法。
The text was updated successfully, but these errors were encountered: