开发者社区> 问答> 正文

python应用日志中报错socket.timeout: timed out是什么意思

2021-05-04 22:08:00,848 ERROR /usr/local/lib/python3.7/site-packages/ddtrace/internal/writer.py failed to send traces to Datadog Agent at http://test.data.com:1529
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/ddtrace/internal/writer.py", line 404, in flush_queue
    self._send_payload(encoded, len(enc_traces))
  File "/usr/local/lib/python3.7/site-packages/ddtrace/internal/writer.py", line 304, in _send_payload
    response = self._put(payload, headers)
  File "/usr/local/lib/python3.7/site-packages/ddtrace/internal/writer.py", line 281, in _put
    resp = compat.get_connection_response(conn)
  File "/usr/local/lib/python3.7/site-packages/ddtrace/compat.py", line 214, in get_connection_response
    return conn.getresponse()
  File "/usr/local/lib/python3.7/http/client.py", line 1369, in getresponse
    response.begin()
  File "/usr/local/lib/python3.7/http/client.py", line 310, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.7/http/client.py", line 271, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

展开
收起
水果黄瓜 2021-10-24 13:08:13 2165 0
2 条回答
写回答
取消 提交回答
  • socket.timeout: timed out
    

    关键信息,表示网络连接超时了,目标机器在规定时间无法连接上

    2021-10-25 21:06:22
    赞同 展开评论 打赏
  • 网络规划设计师、敏捷专家、CISP、ITSS服务经理、ACA全科目、ACP4项、ACE、CBP、CDSP、CZTP等。拥有 PRINCE2 Foundation/Practitioner、CCSK、ITIL、ISO27001、PMP等多项国际认证。 专利5+、期刊10+、知识产权师。核心期刊审稿人。

    您好,连接超时。failed to send traces to Datadog Agent at http://test.data.com:1529

    2021-10-24 20:59:30
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载