[mirai-api-http]梗查询插件——GengSearch
- 
					
					
					
					
 搜索请求错误/超时 
 错误详情:
 Traceback (most recent call last):
 File "urllib3\connectionpool.py", line 696, in urlopen
 File "urllib3\connectionpool.py", line 964, in prepare_proxy
 File "urllib3\connection.py", line 364, in connect
 File "urllib3\connection.py", line 501, in connect_tls_proxy
 File "urllib3\util\ssl.py", line 453, in ssl_wrap_socket
 File "urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl
 File "ssl.py", line 500, in wrap_socket
 File "ssl.py", line 1040, in _create
 File "ssl.py", line 1309, in do_handshake
 ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)During handling of the above exception, another exception occurred: Traceback (most recent call last): 
 File "requests\adapters.py", line 439, in send
 File "urllib3\connectionpool.py", line 755, in urlopen
 File "urllib3\util\retry.py", line 574, in increment
 urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='jikipedia.com', port=443): Max retries exceeded with url: /search?phrase=%20&category=definition (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)')))During handling of the above exception, another exception occurred: Traceback (most recent call last): 
 File "GengSearch.py", line 138, in Search
 File "requests\api.py", line 75, in get
 File "requests\api.py", line 61, in request
 File "requests\sessions.py", line 542, in request
 File "requests\sessions.py", line 655, in send
 File "requests\adapters.py", line 514, in send
 requests.exceptions.SSLError: HTTPSConnectionPool(host='jikipedia.com', port=443): Max retries exceeded with url: /search?phrase=%20&category=definition (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)')))save log 
 搜索列表保存错误
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 148, in Search
 UnboundLocalError: local variable 'Searchlist' referenced before assignmentsave log 
 无法定位到搜索列表的首个词条ID
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 154, in Search
 UnboundLocalError: local variable 'Searchlist' referenced before assignmentsave log 
 Error
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 166, in Search
 UnboundLocalError: local variable 'Searchlist' referenced before assignmentsave log 
 save log大佬,我cookie复制完整了还是这样 
- 
					
					
					
					
 @2741911624 嗯嗯 
- 
					
					
					
					
 我也出现了上面两位一样的问题和报错,完整复制了cookie并且尝试删去分号前的空格也没用 
- 
					
					
					
					
 @CabbCat 跟上一位报错相同的话,那就是开了代理没关 
- 
					
					
					
					
 @Koreyoshi [滑稽] [doge] 
- 
					
					
					
					
 大大,这是咋回事啊,我data都填好了,然后那个小鸡官网进不去,我是千兆网,然后运行起来之后,没填cookie就这样 
 Version 1.3.2
 running from Windows
 未开启每日发送
 未开启黑名单模式
 查询触发文本:
 ['梗查询 ']
 ['来点梗']
 群冷却时间: 10 秒 文本: 让我休息一下嘛!
 群成员冷却时间: 30 秒 文本: 你搜的太快啦!{}秒后再来试试吧
 {'Key': '1234567890', 'host': 'localhost:8080', 'port': '8080', 'qq': '1474058663', 'session': 'vaKFilw9'}
 data Get Success
 Listening……
 Get mission
 can not find cookie.txt
 Searchid: <!doctype html>
 <html data-n-head-ssr>
 <head >
 <title>T.T 出错惹~</title><meta data-n-head=
 infoUrl: https://jikipedia.com/definition/<!doctype html>
 <html data-n-head-ssr>
 <head >
 <title>T.T 出错惹~</title><meta data-n-head=
 Error
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 193, in Search
 IndexError: list index out of range
- 
					
					
					
					
 @风流任我 这个报错就是小鸡词典页面加载不出来,应该是网的问题 
- 
					
					
					
					
 我是千兆网络啊,我单独进了几次官网也是进不去 
- 
					
					
					
					
 @风流任我 开了代理? 
- 
					
					
					
					
 没开,我在问之前我就看啦 
- 
					
					
					
					
 @Koreyoshi 
 我现在进了网站,把cookie复制到了cookie.txt输入来点梗报错,麻烦您帮我看看
 Version 1.3.2
 running from Windows
 未开启每日发送
 未开启黑名单模式
 查询触发文本:
 ['梗查询 ']
 ['来点梗']
 群冷却时间: 10 秒 文本: 让我休息一下嘛!
 群成员冷却时间: 30 秒 文本: 你搜的太快啦!{}秒后再来试试吧
 {'Key': '1234567890', 'host': 'localhost:8080', 'port': '8080', 'qq': '1474058663', 'session': '3qdVQsVj'}
 data Get Success
 Listening……
 Get mission
 Searchid: <!doctype html>
 <html data-n-head-ssr>
 <head >
 <title>T.T 出错惹~</title><meta data-n-head=
 infoUrl: https://jikipedia.com/definition/<!doctype html>
 <html data-n-head-ssr>
 <head >
 <title>T.T 出错惹~</title><meta data-n-head=
 Error
 错误详情:
 Traceback (most recent call last):
 File "GengSearch.py", line 193, in Search
 IndexError: list index out of rangesave log 
 save log
- 
					
					
					
					
 okok了,是服务器问题!!!! 
- 
					
					
					
					
 @Koreyoshi 请问一下为什么我在一个群发,反应很慢才会回,然后另一个群发的话,每次都是报错 
- 
					
					
					
					
 @风流任我 反应慢有可能就是服务器的问题,连接网站过慢,报错的话错误信息是什么呢 
- 
					
					
					
					
 作者大大你好,我现在在群里发来点梗,反应很快,然后群里没一点点动静是为啥啊 
 save logListening…… 
 Get mission
 Searchid: 383620885
 infoUrl: https://jikipedia.com/definition/383620885
 Loading page (1/2)
 Rendering (2/2)
 Done
 Success
 RuningTime: 1.534138200000001
 save logListening…… 
- 
					
					
					
					
 @风流任我 其他指令能用吗?看看mirai后台有没有消息发送记录 
- 
					
					
					
					
 好的我看看 
- 
					
					
					
					
 mirai-div里面需要每次开都安装一次吗大佬 
- 
					
					
					
					
 @风流任我 安装什么呢?抱歉我没听懂 
- 
					
					
					
					
 @Koreyoshi 就是每一次启动之后,我发梗查询或者来点梗,第一次反应会很快,但是群里没有任何反应,第二次请求就很慢,有时候没这个问题,但是这个问题经常出现 
