-
Notifications
You must be signed in to change notification settings - Fork 7.9k
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
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
LINKAI 插件 的 总结 PDF 文件,前几天是好用的,今天发现报错 #2271
Comments
看起来可能是网络超时导致的,现在解决了嘛 |
最近从海外(新加坡)访问LINKAI(调用LINK AI 的 API)经常超时,1个月前没这种情况。
… On 3 Sep 2024, at 17:18, vision ***@***.***> wrote:
看起来可能是网络超时导致的,现在解决了嘛
—
Reply to this email directly, view it on GitHub <#2271 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AE5J6XV55VHSWNDRCACA5Z3ZUV5HFAVCNFSM6AAAAABNFNGF56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRWGAZDCNZUGU>.
You are receiving this because you authored the thread.
|
可以试试国外的访问地址,在配置文件加个配置 |
好的,谢谢。
… On 4 Sep 2024, at 17:10, vision ***@***.***> wrote:
最近从海外(新加坡)访问LINKAI(调用LINK AI 的 API)经常超时,1个月前没这种情况。
… <x-msg://1/#>
On 3 Sep 2024, at 17:18, vision @.***> wrote: 看起来可能是网络超时导致的,现在解决了嘛 — Reply to this email directly, view it on GitHub <#2271 (comment) <#2271 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5J6XV55VHSWNDRCACA5Z3ZUV5HFAVCNFSM6AAAAABNFNGF56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRWGAZDCNZUGU. You are receiving this because you authored the thread.
可以试试国外的访问地址,在配置文件加个配置"linkai_api_base": "https://api.link-ai.chat",
—
Reply to this email directly, view it on GitHub <#2271 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AE5J6XUMS3WNDSVDEYS6MJ3ZU3E7HAVCNFSM6AAAAABNFNGF56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRYGMZDIOBSGU>.
You are receiving this because you authored the thread.
|
前置确认
操作系统类型?
Linux
运行的python版本是?
python 3.7
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
发一个PDF 文件给它,LINK AI插件的总结功能会自动总结,以前一直是好的。今天突然发现报错,如下:
问题描述 😯
[ERROR][2024-08-27 14:24:25][chat_channel.py:557] - Worker return exception: ('Connection aborted.', timeout('The write operation timed out'))
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.9/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1049, in _send_output
self.send(chunk)
File "/usr/lib/python3.9/http/client.py", line 971, in send
self.sock.sendall(data)
File "/usr/lib/python3.9/ssl.py", line 1204, in sendall
v = self.send(byte_view[count:])
File "/usr/lib/python3.9/ssl.py", line 1173, in send
return self._sslobj.write(data)
socket.timeout: The write operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.9/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1049, in _send_output
self.send(chunk)
File "/usr/lib/python3.9/http/client.py", line 971, in send
self.sock.sendall(data)
File "/usr/lib/python3.9/ssl.py", line 1204, in sendall
v = self.send(byte_view[count:])
File "/usr/lib/python3.9/ssl.py", line 1173, in send
return self._sslobj.write(data)
urllib3.exceptions.ProtocolError: ('Connection aborted.', timeout('The write operation timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/C-o-W/channel/chat_channel.py", line 265, in _handle
reply = self.generate_reply(context)
File "/root/C-o-W/channel/chat_channel.py", line 429, in generate_reply
reply = super().build_reply_content(f"{context.content}", context)
File "/root/C-o-W/channel/channel.py", line 38, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/root/C-o-W/bridge/bridge.py", line 206, in fetch_reply_content
e_context = PluginManager().emit_event_ONLY_FOR_PLUGIN( ["LINKAI"], e_context )
File "/root/C-o-W/plugins/plugin_manager.py", line 216, in emit_event_ONLY_FOR_PLUGIN
instance.handlers[e_context.event](e_context, *args, **kwargs)
File "/root/C-o-W/plugins/linkai/linkai.py", line 72, in on_handle_context
res = LinkSummary().summary_file(file_path)
File "/root/C-o-W/plugins/linkai/summary.py", line 18, in summary_file
res = requests.post(url, headers=self.headers(), files=file_body, timeout=(5, 300))
File "/usr/local/lib/python3.9/dist-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', timeout('The write operation timed out'))
终端日志 📒
The text was updated successfully, but these errors were encountered: