Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

部署在腾讯云函数隔几天就会调用失败 #38

Open
Master-cai opened this issue Feb 24, 2021 · 0 comments
Open

部署在腾讯云函数隔几天就会调用失败 #38

Master-cai opened this issue Feb 24, 2021 · 0 comments

Comments

@Master-cai
Copy link

部署在腾讯云函数隔几天就会调用失败,下面是报错信息,这个是什么原因导致的,应该怎么解决?

2021-02-24 22:12:22 开始模拟登陆。。。
Starting new HTTP connection (1): www.zimo.wiki:8080
ERROR RequestId:891f2ce8-8e81-4ba9-aac9-8dcaedeef763 Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Traceback (most recent call last):\n File "/opt/urllib3/connectionpool.py", line 421, in _make_request\n six.raise_from(e, None)\n File "", line 3, in raise_from\n File "/opt/urllib3/connectionpool.py", line 416, in _make_request\n httplib_response = conn.getresponse()\n File "/var/lang/python3/lib/python3.6/http/client.py", line 1331, in getresponse\n response.begin()\n File "/var/lang/python3/lib/python3.6/http/client.py", line 297, in begin\n version, status, reason = self._read_status()\n File "/var/lang/python3/lib/python3.6/http/client.py", line 258, in _read_status\n line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")\n File "/var/lang/python3/lib/python3.6/socket.py", line 586, in readinto\n return self._sock.recv_into(b)\nConnectionResetError: [Errno 104] Connection reset by peer\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/opt/requests/adapters.py", line 449, in send\n timeout=timeout\n File "/opt/urllib3/connectionpool.py", line 720, in urlopen\n method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]\n File "/opt/urllib3/util/retry.py", line 400, in increment\n raise six.reraise(type(error), error, _stacktrace)\n File "/opt/urllib3/packages/six.py", line 734, in reraise\n raise value.with_traceback(tb)\n File "/opt/urllib3/connectionpool.py", line 672, in urlopen\n chunked=chunked,\n File "/opt/urllib3/connectionpool.py", line 421, in _make_request\n six.raise_from(e, None)\n File "", line 3, in raise_from\n File "/opt/urllib3/connectionpool.py", line 416, in _make_request\n httplib_response = conn.getresponse()\n File "/var/lang/python3/lib/python3.6/http/client.py", line 1331, in getresponse\n response.begin()\n File "/var/lang/python3/lib/python3.6/http/client.py", line 297, in begin\n version, status, reason = self._read_status()\n File "/var/lang/python3/lib/python3.6/http/client.py", line 258, in _read_status\n line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")\n File "/var/lang/python3/lib/python3.6/socket.py", line 586, in readinto\n return self._sock.recv_into(b)\nurllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/var/runtime/python3/bootstrap.py", line 176, in handle\n ret = self.real_handler(event, context)\n File "/var/user/index.py", line 381, in main_handler\n raise e\n File "/var/user/index.py", line 347, in main_handler\n session = getSession(user, apis['login-url'])\n File "/var/user/index.py", line 108, in getSession\n res = requests.post(config['login']['api'], params, verify=not debug)\n File "/opt/requests/api.py", line 119, in post\n return request('post', url, data=data, json=json, **kwargs)\n File "/opt/requests/api.py", line 61, in request\n return session.request(method=method, url=url, **kwargs)\n File "/opt/requests/sessions.py", line 530, in request\n resp = self.send(prep, **send_kwargs)\n File "/opt/requests/sessions.py", line 643, in send\n r = adapter.send(request, **kwargs)\n File "/opt/requests/adapters.py", line 498, in send\n raise ConnectionError(err, request=request)\nrequests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))","statusCode":430}
END RequestId:891f2ce8-8e81-4ba9-aac9-8dcaedeef763
Report RequestId:891f2ce8-8e81-4ba9-aac9-8dcaedeef763 Duration:1247ms Memory:128MB MemUsage:66.312500MB

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant