首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TeleBot:“发生了ConnectionError

TeleBot:“发生了ConnectionError
EN

Stack Overflow用户
提问于 2020-09-14 09:51:25
回答 1查看 359关注 0票数 0

代码取自github,由开发人员实施,并部署在AWS和on-premise中。它在两者上都工作得很好,但在GCP中给出了下面的错误。我是一个管理员与非常低的python技能试图在GCP中实现它。做了谷歌提到的操作系统级别的调整,但仍然是相同的错误。它工作正常,但当它空闲2小时并接收到任何消息时,它立即崩溃。

代码语言:javascript
复制
2020-09-11 04:52:29,282 (util.py:75 WorkerThread1) ERROR - TeleBot: "ConnectionE
rror occurred, args=(ProtocolError('Connection aborted.', ConnectionResetError(1
04, 'Connection reset by peer')),)
Traceback (most recent call last):
  File "/home/alex/venv/lib/python3.7/site-packages/urllib3/connectionpool.py"
, line 677, in urlopen
    chunked=chunked,
  File "/home/alex/venv/lib/python3.7/site-packages/urllib3/connectionpool.py"
, line 426, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/home/alex/venv/lib/python3.7/site-packages/urllib3/connectionpool.py"
, line 421, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.7/http/client.py", line 1344, in getresponse
    response.begin()
  File "/usr/lib/python3.7/http/client.py", line 306, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.7/http/client.py", line 267, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.7/ssl.py", line 1071, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.7/ssl.py", line 929, in read
    return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer
EN

回答 1

Stack Overflow用户

发布于 2020-09-15 04:12:19

它需要由谷歌产品团队进行调查。

然后我建议通过Public Issue Tracker转发这篇文章,以获得进一步的支持。或者您可以使用Google Cloud support (对免费用户this link)打开一个工单,以便我们可以进一步调查此问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63877157

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档