Skip to content

Connection aborted - local problem or changes in API? #34

@Kucharskov

Description

@Kucharskov

Hello there!
Im using your python client for ages and today i lost all my readings. So i tried old-fasion way and restart service with proxy, but i got connection error:

[2026-01-02 21:23:27:INFO] Starting Carelink Client Proxy (version 1.2)
[2026-01-02 21:23:27:INFO] _read_token_file()
[2026-01-02 21:23:27:INFO] _get_access_token_payload()
[2026-01-02 21:23:27:INFO] _get_config()
[2026-01-02 21:23:28:INFO] _get_user()
[2026-01-02 21:23:28:ERROR] 'role'
[2026-01-02 21:23:28:INFO] _do_refresh()
[2026-01-02 21:23:28:ERROR] ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2026-01-02 21:23:28:INFO] _read_token_file()
[2026-01-02 21:23:28:INFO] _get_access_token_payload()
[2026-01-02 21:23:28:INFO] _get_config()
[2026-01-02 21:23:29:INFO] _get_user()
[2026-01-02 21:23:29:ERROR] 'role'
[2026-01-02 21:23:29:INFO] _do_refresh()
[2026-01-02 21:23:29:ERROR] ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2026-01-02 21:23:29:ERROR] ERROR: unable to initialize

So i tought about reissuing valid token, then i got this:

 python3 carelink_carepartner_api_login.py
performing login...
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 787, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 488, in _make_request
    raise new_e
  File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 464, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.11/dist-packages/urllib3/connectionpool.py", line 1093, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.11/dist-packages/urllib3/connection.py", line 796, in connect
    sock_and_verified = _ssl_wrap_socket_and_match_hostname(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/urllib3/connection.py", line 975, in _ssl_wrap_socket_and_match_hostname
    ssl_sock = ssl_wrap_socket(
               ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/urllib3/util/ssl_.py", line 483, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/urllib3/util/ssl_.py", line 527, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/ssl.py", line 1075, in _create
    self.do_handshake()
  File "/usr/lib/python3.11/ssl.py", line 1346, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer
... 

ERROR trucated but traceback goes up to main(args.us) and token_data = do_login(endpoint_config) with code 104.

Do you have the same problem? Maybe its local problem with Medtronic? I tried carelink_carepartner_api_login.py from my PC, my VM, my Raspberry Pi but even from my VPS in other country and all of them have issue with getting proper token.

Regards!

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