Open milekrisz opened 7 months ago
I redacted some personal info in your issue. You do not want that to be found on the internet.
The error is not very specific, but when ik can find the time I will take a look at it.
Ohh, thank you, I did not notice.
This issue is stale because it has been open for 30 days with no activity.
Hey,
I'm getting the same error - maybe slightly different area of code? I added 3 extra debug lines to try and figure it out on my own. I'll do some more digging later and maybe get new tokens and go from there..
What's odd is the refresh token is a guid? maybe that's ok, in the past refresh tokens have been token looking
2024-06-22 16:45:04.386 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _get_access_token_payload()
2024-06-22 16:45:04.387 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_config_settings()
2024-06-22 16:45:04.691 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: User region: US
2024-06-22 16:45:05.575 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_my_user()
2024-06-22 16:45:05.575 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_data()
2024-06-22 16:45:05.575 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __handle_authorization_token()
2024-06-22 16:45:05.575 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: _get_access_token_payload()
2024-06-22 16:45:05.576 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: Current token is valid until Sat Jun 22 00:21:22 UTC 2024
2024-06-22 16:45:05.576 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __refreshToken
2024-06-22 16:45:05.576 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: Trying to refresh token
2024-06-22 16:45:05.576 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: https://mdtlogin.medtronic.com:443/mmcl/auth/oauth/v2/token
2024-06-22 16:45:05.577 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: {'mag-identifier': 'redacted=='}
2024-06-22 16:45:05.577 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: {'refresh_token': 'guid'-redacted, 'client_id': 'guid-redacted', 'client_secret': 'redacted', 'grant_type': 'refresh_token'}
2024-06-22 16:45:05.890 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: {'error': 'invalid_client', 'error_description': 'The given client credentials were not valid'}
2024-06-22 16:45:05.890 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: Failed to refresh token (401)
2024-06-22 16:45:05.972 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __get_data() failed: exception __get_data() session get response is not OK401
2024-06-22 16:45:05.973 DEBUG (MainThread) [custom_components.carelink.api] Carelink API: __execute_init_procedure() failed: exception 'NoneType' object is not subscriptable
Hi, did you solve the problem?
Dear Yo-ha! Thank you for your work! I have a little issue. The new integration (2024.3.1) working fine, but no data is received. I tried to write the optional PatientID, too. The oldiest integration (2024.1.0) brought the informations.
The debug log:
What could be the problem? Thank you for your help!