We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got a requests.exceptions.ConnectionError exception when using list_servers_all:
requests.exceptions.ConnectionError
list_servers_all
File "/app/.venv/lib/python3.11/site-packages/scaleway/instance/v1/api.py", line 441, in list_servers_all return fetch_all_pages( ^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/scaleway_core/utils/fetch_all_pages.py", line 47, in fetch_all_pages return items + fetch_all_pages( ^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/scaleway_core/utils/fetch_all_pages.py", line 35, in fetch_all_pages data = fetcher(**fetcher_args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/scaleway/instance/v1/api.py", line 373, in list_servers res = self._request( ^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/scaleway_core/api.py", line 154, in _request response = requests.request( ^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.scaleway.com', port=443): Max retries exceeded with url: /instance/v1/zones/fr-par-2/servers?page=2&tags=XXX%2CYYY (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fabc202ac10>: Failed to resolve 'api.scaleway.com' ([Errno -3] Try again)"))
The error should have been caught by the SDK which should have raised a ScalewayException to be caught by the caller.
ScalewayException
The text was updated successfully, but these errors were encountered:
Laure-di
No branches or pull requests
Got a
requests.exceptions.ConnectionError
exception when usinglist_servers_all
:The error should have been caught by the SDK which should have raised a
ScalewayException
to be caught by the caller.The text was updated successfully, but these errors were encountered: