ondrej1024 / carelink-python-client

Experimental Medtronic CareLink Client in Python
GNU Affero General Public License v3.0
37 stars 19 forks source link

ERROR: failed to get data (response code 204) #24

Open sebazungui opened 5 days ago

sebazungui commented 5 days ago

Hello! first thanks for your amazing work! I'm trying to make something useful for my young nephew with homeassistant (tried first and im here now) but im having trouble getting data (title). He is using just the arm sensor (Guardian 4) that's a problem?. Debug log here:

[2024-09-19 18:05:52:INFO] _is_token_valid() [2024-09-19 18:05:52:INFO] access token expires in 8300s (Thu Sep 19 23:24:13 UTC 2024) [2024-09-19 18:05:52:INFO] _get_data() [2024-09-19 18:05:52:DEBUG] Starting new HTTPS connection (1): clcloud.minimed.eu:443 [2024-09-19 18:05:53:DEBUG] https://clcloud.minimed.eu:443 "POST /connect/carepartner/v6/display/message HTTP/11" 204 0 [2024-09-19 18:05:53:DEBUG] status: 204 ERROR: failed to get data (response code 204)

ondrej1024 commented 5 days ago

The API response with HTTP status code 204 means "No Content". Si I guess the API endpoint carelink_python_client is using for retrieving the pump and sensor data is not valid for a monitoring only system with G4 sensor.