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
API获取调用凭证报错:internal err 完整返回的是{'code': 100002, 'message': 'internal err'} 编程环境:python data={ 'appId':'正确的', 'clientSecret':'正确的' } hd={'Content-Type':'application/json'} ATK_now = requests.post(url="https://bots.qq.com/app/getAppAccessToken",data=data,headers=hd)
The text was updated successfully, but these errors were encountered:
我也遇到同样的错误,问题似乎并不出在本地。似乎每次请求都会向https://bots.qq.com/app/getAppAccessToken 获取access_token,如果请求超时,捕获asyncio.TimeoutError异常,并打印超时信息。如果响应数据中没有access_token或expires_in字段,打印错误信息并抛出RuntimeError异常。显然我们遇到了第二种情况。当成功之后才会返回机器人的token。我目前还没找出解决办法。
Sorry, something went wrong.
这个iss打开时间是24Jul22,现在已经24Dec22,处理速度有点过于慢了吧
问题解决,data的数据需要json.dumps()一下,而且appid需要str下
No branches or pull requests
API获取调用凭证报错:internal err
完整返回的是{'code': 100002, 'message': 'internal err'}
编程环境:python
data={
'appId':'正确的',
'clientSecret':'正确的'
}
hd={'Content-Type':'application/json'}
ATK_now = requests.post(url="https://bots.qq.com/app/getAppAccessToken",data=data,headers=hd)
The text was updated successfully, but these errors were encountered: