You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在请求的过程中, sdk 导致程序退出, 不能让我一下子将内容搜索完成, 具体报错如下:
"the access token expires, please re-run [zoomeye init] command. it is recommended to use API KEY for initialization!"
但是我的 api_key 貌似没有问题, 在命令行使用 zoomeye search 'title:"Scam List of Tor"' -type host -num 1 依然能够搜索.
进而在sdk.py _request 方法加入输出日志代码:
# if response succeed and status code is not 200 return error format json
# others error return unknown error
# mainly users initialized by username and password, access token expires after 12 hours
else:
print(params)
print('-'*20)
print(resp.text)
raise ValueError(resp.json().get('message'))
Activity
Rosschach commentedon May 13, 2021
1.您是否使用的是token验证,因为token验证是12小时有效期的。
2.如果您token和API-KEY都已经使用了,建议您删除token验证,因为您的数据量较大,可能12个小时不能导出完成和。
kaichenkai commentedon May 13, 2021
用的是 api-key 验证
我的疑问是, 我发这个请求, 不应该导致服务内部错误, 而退出程序.
Rosschach commentedon May 14, 2021
由于无法复现您的问题,给予您以下建议:
祝好。