Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- RemoteDisconnected Traceback (most recent call last)
- /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
- 600 body=body, headers=headers,
- --> 601 chunked=chunked)
- 602
- /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
- 386 # otherwise it looks like a programming error was the cause.
- --> 387 six.raise_from(e, None)
- 388 except (SocketTimeout, BaseSSLError, SocketError) as e:
- /usr/local/lib/python3.6/site-packages/urllib3/packages/six.py in raise_from(value, from_value)
- /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
- 382 try:
- --> 383 httplib_response = conn.getresponse()
- 384 except Exception as e:
- /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py in getresponse(self)
- 1330 try:
- -> 1331 response.begin()
- 1332 except ConnectionError:
- /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py in begin(self)
- 296 while True:
- --> 297 version, status, reason = self._read_status()
- 298 if status != CONTINUE:
- /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py in _read_status(self)
- 265 # sending a valid response.
- --> 266 raise RemoteDisconnected("Remote end closed connection without"
- 267 " response")
- RemoteDisconnected: Remote end closed connection without response
- During handling of the above exception, another exception occurred:
- ProtocolError Traceback (most recent call last)
- /usr/local/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
- 439 retries=self.max_retries,
- --> 440 timeout=timeout
- 441 )
- /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
- 638 retries = retries.increment(method, url, error=e, _pool=self,
- --> 639 _stacktrace=sys.exc_info()[2])
- 640 retries.sleep()
- /usr/local/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
- 356 if read is False or not self._is_method_retryable(method):
- --> 357 raise six.reraise(type(error), error, _stacktrace)
- 358 elif read is not None:
- /usr/local/lib/python3.6/site-packages/urllib3/packages/six.py in reraise(tp, value, tb)
- 684 if value.__traceback__ is not tb:
- --> 685 raise value.with_traceback(tb)
- 686 raise value
- /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
- 600 body=body, headers=headers,
- --> 601 chunked=chunked)
- 602
- /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
- 386 # otherwise it looks like a programming error was the cause.
- --> 387 six.raise_from(e, None)
- 388 except (SocketTimeout, BaseSSLError, SocketError) as e:
- /usr/local/lib/python3.6/site-packages/urllib3/packages/six.py in raise_from(value, from_value)
- /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
- 382 try:
- --> 383 httplib_response = conn.getresponse()
- 384 except Exception as e:
- /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py in getresponse(self)
- 1330 try:
- -> 1331 response.begin()
- 1332 except ConnectionError:
- /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py in begin(self)
- 296 while True:
- --> 297 version, status, reason = self._read_status()
- 298 if status != CONTINUE:
- /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py in _read_status(self)
- 265 # sending a valid response.
- --> 266 raise RemoteDisconnected("Remote end closed connection without"
- 267 " response")
- ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))
- During handling of the above exception, another exception occurred:
- ConnectionError Traceback (most recent call last)
- <ipython-input-8-ea543309461d> in <module>()
- ----> 1 db_influx.ping()
- /usr/local/lib/python3.6/site-packages/influxdb/client.py in ping(self)
- 491 url="ping",
- 492 method='GET',
- --> 493 expected_response_code=204
- 494 )
- 495
- /usr/local/lib/python3.6/site-packages/influxdb/client.py in request(self, url, method, params, data, expected_response_code, headers)
- 265 proxies=self._proxies,
- 266 verify=self._verify_ssl,
- --> 267 timeout=self._timeout
- 268 )
- 269 break
- /usr/local/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
- 506 }
- 507 send_kwargs.update(settings)
- --> 508 resp = self.send(prep, **send_kwargs)
- 509
- 510 return resp
- /usr/local/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
- 616
- 617 # Send the request
- --> 618 r = adapter.send(request, **kwargs)
- 619
- 620 # Total elapsed time of the request (approximately)
- /usr/local/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
- 488
- 489 except (ProtocolError, socket.error) as err:
- --> 490 raise ConnectionError(err, request=request)
- 491
- 492 except MaxRetryError as e:
- ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement