You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
Rate Limiting or API provider closes connection without warning (and also multiple request over threshold due to a elective design choice)
To Reproduce
Steps to reproduce the behavior:
On Immediate Launch of CLI: the
[ ]
Thee traceback references two interpreters:
\LoveSandwiches\venv\
\PyCriteria\app.py
Traceback(mostrecentcalllast):
File "D:\Code\Code Institute\LoveSandwiches\venv\Lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "<string>", line 3, in raise_from File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "E:\Lang\python\3.11\Lib\http\client.py", line 1375, in getresponse response.begin() File "E:\Lang\python\3.11\Lib\http\client.py", line 318, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "E:\Lang\python\3.11\Lib\http\client.py", line 287, in _read_status raise RemoteDisconnected("Remoteendclosedconnectionwithout"http.client.RemoteDisconnected: Remote end closed connection without responseDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\requests\adapters.py", line 487, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\urllib3\util\retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\urllib3\packages\six.py", line 769, in reraise raise value.with_traceback(tb) File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "<string>", line 3, in raise_from File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "E:\Lang\python\3.11\Lib\http\client.py", line 1375, in getresponse response.begin() File "E:\Lang\python\3.11\Lib\http\client.py", line 318, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "E:\Lang\python\3.11\Lib\http\client.py", line 287, in _read_status raise RemoteDisconnected("Remoteendclosedconnectionwithout"urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))During handling of the above exception, another exception occurred:Traceback (most recent call last): File "D:\Code\CodeInstitute\PyCriteria\app.py", line 34, in <module> DataControl: DataController = DataController(Actions.load_wsheet()) ^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\PyCriteria\controller.py", line 100, in load_wsheet connector.get_source(creds, File "D:\Code\CodeInstitute\PyCriteria\connections.py", line 130, in get_source return _gsheet.open(file_name) ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\gspread\client.py", line 152, in open self.list_spreadsheet_files(title, folder_id), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\gspread\client.py", line 127, in list_spreadsheet_files res = self.request("get", url, params=params).json() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\gspread\client.py", line 79, in request response = getattr(self.session, method)( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\requests\sessions.py", line 600, in get return self.request("GET", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\google\auth\transport\requests.py", line 549, in request response = super(AuthorizedSession, self).request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\requests\sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\requests\sessions.py", line 701, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Code\CodeInstitute\LoveSandwiches\venv\Lib\site-packages\requests\adapters.py", line 502, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
PS D:\Code\Code Institute\PyCriteria>
Expected behavior
A clear and concise description of what you expected to happen.
There should be no remote connection
It should look like this
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS] Windows
Browser [e.g. chrome, safari] Windows Terminal, Powershell
Version [e.g. 22] Python 3.11 but will venv?
Additional context
Add any other context about the problem here.
Possible HTTP 429 for rate limiting, as my frequency of requests when up during final testing.
The text was updated successfully, but these errors were encountered:
iPoetDev
changed the title
'Connection aborted.', RemoteDisconnected('Remote end closed connection without response'
SUBMISSION BLOCK: 'Connection aborted.', RemoteDisconnected('Remote end closed connection without response'
May 23, 2023
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
On Immediate Launch of CLI: the
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: