ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

  • 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’))

Hello @Ishwari7219,

I could reproduce the error, it seems you have the wrong API endpoint in step 2.4. Could you check in cloudformation for the correct API endpoint since it changes every lab session, Thank you:



IT SEEMS that my both api endpoint are same but still dealing with the same error what to do

Hello @Ishwari7219,

Yes your API endpoint looks correct, there was a learner in Capstone 2 (post)that couldn’t access his API Endpoint. Perhaps after a new lab session you could try again since the API Endpoint updates each time. You could also submit the form for a lab refresh that takes 2 business days to complete. Hope it helps

how do i submit the form?

Hello @Ishwari7219

You could follow this link I posted before. You can choose any option and the lab you need to refresh. Note, it takes 2 business days to complete. Thank you


NOW ONLY RUNNING source scripts/setup.sh IT IS SHOWING ERROR

Hello @Ishwari7219,

Sorry for the inconvenience, the lab refresh seems to fix those lab settings. You need to wait to be notified after you submitted the form, it takes 2 business days since it’s a manual process performed by the engineers. Hope it helps

how will i know that my lab is refresh after the submittion of my form

Hello @Ishwari7219 You should be notified in your email that you filled in the form. Perhaps a staff @hawraa.salami could check it and try their best to refresh your lab at the earliest. Thank you

my lab has refreshed but still i am facing a lock issue

Hello @Ishwari7219,

I couldn’t reproduce the issue with terraform plan state lock but @MattP had the same issue in a different post and might have some feedback. On a side note, you don’t need to run commands other than the terraform plan from notebook instructions.

Since a new lab session seems to clear all the resources after a few hours or you ask for a lab refresh for things like empty AWS console url, failed jobs, existing resources etc if you can’t progress. Thank you


i got this error again after filling the form i got the confirmation that my lab is resolved but ye error firse a gya

Hello @hawraa.salami, @Mubsi,

It seems @Ishwari7219 has an issue with his lab settings after he had his lab refresh. Now he has errors when he is using source scripts/setup.sh Could you check it please. Thank you

@Ishwari7219 Are you still encountering the same issues? This issue could have been of some budget limit but I can see this has been already adjusted for you. Please let me know if there are any other issues you’re encountering