gagebenne / pydexcom

A simple Python API to interact with Dexcom Share service
https://gagebenne.github.io/pydexcom/
MIT License
149 stars 36 forks source link

Dexcom G7 Support #37

Closed ib250 closed 1 year ago

ib250 commented 1 year ago

Hi

I was wondering, does the library support dexcom G7? I've been having some problems using it with an authentication error "password" invalid

gagebenne commented 1 year ago

Hi! It's a good question, one which I'm not so sure of myself. I don't have access to a G7, so I don't really have a way to test this. For your issue, be sure to use the correct region (OUS parameter set to True if you are located outside the US).

Let me know!

ib250 commented 1 year ago

Thanks for the quick reply! I'm pretty sure I set it to the correct region ous=True (device is registered in Germany). The error response I'm getting is:

json: {'Code': 'AccountPasswordInvalid', 'Message': 'Publisher account password failed', 'SubCode': '<OnlineException DateThrownLocal="2023-03-29T14:28:17.02" DateThrown="2023-03-29T14:28:17.02Z" ErrorCode="AccountPasswordInvalid" Type="13" Category="4" Severity="1" TypeString="InvalidPassword" CategoryString="Validation" SeverityString="Minor" HostName="" HostIP="" Id="" Message="Publisher account password failed" FullText="com.dexcom.udp.common.data.exception.OnlineException: Publisher account password failed" />', 'TypeName': 'FaultException'}

I saw in another thread that the password complexity could be an issue?

gagebenne commented 1 year ago

Could certainly try a password change! Also be sure that you have the Dexcom Share service setup with at least one follower, and you are using the user's credentials as opposed to the followers.

https://github.com/gagebenne/pydexcom#setup

hhoover commented 1 year ago

I use this with Dexcom G7 and it works just fine. I'm in the US.

ib250 commented 1 year ago

Share is enabled and I'm using the user credentials not the follower. The same credentials work on the G7 mobile application and clarity as well. Changing the password did not help unfortunately 😢. I thought I'd add some more debugging information:

{
        'Code': 'AccountPasswordInvalid',
        'Message': 'Publisher account password failed',
        'SubCode': (
            '<OnlineException DateThrownLocal="2023-03-30T09:39:02.506" DateThrown="2023-03-30T09:39:02.506Z" ErrorCod'
            'e="AccountPasswordInvalid" Type="13" Category="4" Severity="1" TypeString="InvalidPassword" CategoryStrin'
            'g="Validation" SeverityString="Minor" HostName="" HostIP="" Id="{9c7eb692-ff4f-4127-9b9e-0ff8956c3e5b}" M'
            'essage="Publisher account password failed" FullText="com.dexcom.udp.common.data.exception.OnlineException'
            ': Publisher account password failed" />'
        ),
        'TypeName': 'FaultException',
    }

Is there any documentation you can point me to that could help me debug?

ib250 commented 1 year ago

Bumping this ☝️

gagebenne commented 1 year ago

Are you able to login to this website?

https://uam1.dexcom.com

ib250 commented 1 year ago

Are you able to login to this website?

https://uam1.dexcom.com

Sorry for the delay, unfortunately no. I'm not in the US

gagebenne commented 1 year ago

Ah, sorry, I think this is the OUS url:

https://uam2.dexcom.com

ib250 commented 1 year ago

https://uam2.dexcom.com

Yup, I can login yes. I've got a new device and created a new account as well, still the same issue

ib250 commented 1 year ago

I did just notice something interesting. When I created the new account I shared my data with someone and the email came from the domain name share3-dexcom.com IIRC that was not the demain name the G6 emails came from. Sadly I cant replicate it because G6 follow seems to be broken in the app itself 😅

gagebenne commented 1 year ago

Hi @ib250 -- are you still having issues logging in? I've sadly ran out of troubleshooting idea, ha!

ib250 commented 1 year ago

Yup, still not working. I'll have a look again and I'll let you know if I figure it out so you can update the library. I might do a PR if it's not too big a change. Thanks! I'll close this issue.