Closed bradlipovsky closed 2 years ago
@bradlipovsky a few months ago we updated the client and broke backward compatibility. I am so sorry for this - it was a necessary evil as we were connecting to sliderule over non-standard ports and some firewalls were having issues with it. It looks like you are using one of the older clients. Can you update to the latest Python client and give it another try?
Here is a link to some instructions on updating the client: http://icesat2sliderule.org/rtd/getting_started/Install.html
Pending closure due to inactivity.
The code,
from sliderule import icesat2
icesat2.init("icesat2sliderule.org")
is returning an error (it worked in the past),
timeout Traceback (most recent call last) /home/bradlipovsky/anaconda3/lib/python3.8/site-packages/urllib3/connection.py in _new_conn(self) 168 try: --> 169 conn = connection.create_connection( 170 (self._dns_host, self.port), self.timeout, **extra_kw
/home/bradlipovsky/anaconda3/lib/python3.8/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 95 if err is not None: ---> 96 raise err 97
/home/bradlipovsky/anaconda3/lib/python3.8/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 85 sock.bind(source_address) ---> 86 sock.connect(sa) 87 return sock
timeout: timed out
During handling of the above exception, another exception occurred:
ConnectTimeoutError Traceback (most recent call last) /home/bradlipovsky/anaconda3/lib/python3.8/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) 698 # Make the request on the httplib connection object. --> 699 httplib_response = self._make_request( 700 conn,
/home/bradlipovsky/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, httplib_request_kw) 393 else: --> 394 conn.request(method, url, httplib_request_kw) 395
/home/bradlipovsky/anaconda3/lib/python3.8/site-packages/urllib3/connection.py in request(self, method, url, body, headers) 233 headers["User-Agent"] = _get_default_user_agent() --> 234 super(HTTPConnection, self).request(method, url, body=body, headers=headers) 235
/home/bradlipovsky/anaconda3/lib/python3.8/http/client.py in request(self, method, url, body, headers, encode_chunked) 1229 """Send a complete request to the server.""" -> 1230 self._send_request(method, url, body, headers, encode_chunked) 1231
/home/bradlipovsky/anaconda3/lib/python3.8/http/client.py in _send_request(self, method, url, body, headers, encode_chunked) 1275 body = _encode(body, 'body') -> 1276 self.endheaders(body, encode_chunked=encode_chunked) 1277
/home/bradlipovsky/anaconda3/lib/python3.8/http/client.py in endheaders(self, message_body, encode_chunked) 1224 raise CannotSendHeader() -> 1225 self._send_output(message_body, encode_chunked=encode_chunked) 1226
/home/bradlipovsky/anaconda3/lib/python3.8/http/client.py in _send_output(self, message_body, encode_chunked) 1003 del self._buffer[:] -> 1004 self.send(msg) 1005
/home/bradlipovsky/anaconda3/lib/python3.8/http/client.py in send(self, data) 943 if self.auto_open: --> 944 self.connect() 945 else:
/home/bradlipovsky/anaconda3/lib/python3.8/site-packages/urllib3/connection.py in connect(self) 199 def connect(self): --> 200 conn = self._new_conn() 201 self._prepare_conn(conn)
/home/bradlipovsky/anaconda3/lib/python3.8/site-packages/urllib3/connection.py in _new_conn(self) 173 except SocketTimeout: --> 174 raise ConnectTimeoutError( 175 self,
ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x7fcf34614400>, 'Connection to icesat2sliderule.org timed out. (connect timeout=10)')
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last) /home/bradlipovsky/anaconda3/lib/python3.8/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method,
/home/bradlipovsky/anaconda3/lib/python3.8/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) 754 --> 755 retries = retries.increment( 756 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
/home/bradlipovsky/anaconda3/lib/python3.8/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 573 if new_retry.is_exhausted(): --> 574 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 575
MaxRetryError: HTTPConnectionPool(host='icesat2sliderule.org', port=8050): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fcf34614400>, 'Connection to icesat2sliderule.org timed out. (connect timeout=10)'))
During handling of the above exception, another exception occurred:
ConnectTimeout Traceback (most recent call last)