用base.append_row()一直read time out 下边是报错
不管是插入一行还是批量插入都会报错
Traceback (most recent call last):
File “/root/.local/lib/python3.11/site-packages/urllib3/connectionpool.py”, line 536, in _make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/urllib3/connection.py”, line 461, in getresponse
httplib_response = super().getresponse()
^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/http/client.py”, line 1386, in getresponse
response.begin()
File “/usr/local/lib/python3.11/http/client.py”, line 325, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/http/client.py”, line 286, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/socket.py”, line 706, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/ssl.py”, line 1315, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/ssl.py”, line 1167, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/root/.local/lib/python3.11/site-packages/requests/adapters.py”, line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/urllib3/connectionpool.py”, line 844, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/urllib3/util/retry.py”, line 470, in increment
raise reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/urllib3/util/util.py”, line 39, in reraise
raise value
File “/root/.local/lib/python3.11/site-packages/urllib3/connectionpool.py”, line 790, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/urllib3/connectionpool.py”, line 538, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File “/root/.local/lib/python3.11/site-packages/urllib3/connectionpool.py”, line 370, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘dtable-server.seatable.cn’, port=443): Read timed out. (read timeout=30)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/scripts/index.py”, line 536, in
base.append_row(flow_table_name, row)
File “/root/.local/lib/python3.11/site-packages/seatable_api/main.py”, line 60, in wrapper
return func(obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/seatable_api/main.py”, line 432, in append_row
response = requests.post(url, json=json_data, headers=self.headers, timeout=self.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/requests/api.py”, line 115, in post
return request(“post”, url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/requests/api.py”, line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/requests/sessions.py”, line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/requests/sessions.py”, line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/root/.local/lib/python3.11/site-packages/requests/adapters.py”, line 532, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host=‘dtable-server.seatable.cn’, port=443): Read timed out. (read timeout=30)