Skip to content

Some connection issues #6

@nllz

Description

@nllz

Some other issues:

country= bgp_visualize_asn.bgp_visualize(country='cn')
country.Draw()

adding peers for AS #55466 in CN
Error in getting the neighbors for ASN 55466
adding peers for AS #55468 in CN
Traceback (most recent call last):
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/connection.py", line 198, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/socket.py", line 963, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/connectionpool.py", line 787, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/connectionpool.py", line 488, in _make_request
raise new_e
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/connectionpool.py", line 464, in _make_request
self._validate_conn(conn)
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1093, in _validate_conn
conn.connect()
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/connection.py", line 704, in connect
self.sock = sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/connection.py", line 205, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: <urllib3.connection.HTTPSConnection object at 0x71df55ee1b50>: Failed to resolve 'api.bgpview.io' ([Errno -3] Temporary failure in name resolution)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/connectionpool.py", line 841, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.bgpview.io', port=443): Max retries exceeded with url: /asn/55468/peers (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x71df55ee1b50>: Failed to resolve 'api.bgpview.io' ([Errno -3] Temporary failure in name resolution)"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/bgp_visualize/bgp_visualize_asn.py", line 186, in Draw
asn_neig_object_neighbors = asn_neig_object.get_ipv4_neighbors()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/bgp_visualize/bgp_visualize_asn.py", line 28, in get_ipv4_neighbors
neighbors_resp = requests.get(url,
^^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gagarin/Data/bgp_viz/lib/python3.12/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.bgpview.io', port=443): Max retries exceeded with url: /asn/55468/peers (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x71df55ee1b50>: Failed to resolve 'api.bgpview.io' ([Errno -3] Temporary failure in name resolution)"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions