- Module (Module-4)
*week - 4
Programming Assignment: Assignment 4: Capstone Project Part 1 - ETL and Data Modeling
request_start_date = “2020-01-01”
request_end_date = “2020-03-01”
sessions_response = requests.get(f’http://{API_ENDPOINT}/sessions?start_date={request_start_date}&end_date={request_end_date}')
print(sessions_response.status_code)
- Description (include relevant info but please do not post solution code or your entire notebook)
Output exceeds the size limit. Open the full output data in a text editor
--------------------------------------------------------------------------- RemoteDisconnected Traceback (most recent call last) File ~/miniconda/lib/python3.12/site-packages/urllib3/connectionpool.py:699, in HTTPConnectionPool.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, 701 method, 702 url, 703 timeout=timeout_obj, 704 body=body, 705 headers=headers, 706 chunked=chunked, 707 ) 709 # If we’re going to release the connection in finally:
, then 710 # the response doesn’t need to know about the connection. Otherwise 711 # it will also try to release it and we’ll have a double-release 712 # mess. File ~/miniconda/lib/python3.12/site-packages/urllib3/connectionpool.py:445, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 441 except BaseException as e: 442 # Remove the TypeError from the exception chain in 443 # Python 3 (including for exceptions like SystemExit). 444 # Otherwise it looks like a bug in the code. → 445 six.raise_from(e, None) 446 except (SocketTimeout, BaseSSLError, SocketError) as e:
…
684 except MaxRetryError as e: 685 if isinstance(e.reason, ConnectTimeoutError): 686 # TODO: Remove this in 3.0.0: see #2811 ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))