costastf / locationsharinglib

A library to retrieve coordinates from an google account that has been shared locations of other accounts.
MIT License
170 stars 29 forks source link

I am not getting authenticated, did google change something? #97

Closed chagai95 closed 2 years ago

chagai95 commented 2 years ago

I just noticed today and I tried two different accounts already that used to work: service.get_authenticated_person() is giving me a None

costastf commented 2 years ago

Hi, thanks for reporting. Can you please elaborate a bit? Are you authenticating via the browser, exporting the cookies, passing them to the library and you are not getting anything? Because the way I read it might be that you are trying to use existing cookies that worked but no longer do. Which is the case? Also, can you please supply a debug log, being careful to remove any personal info so I can see what happens?

chagai95 commented 2 years ago

Hey, thx for answering! I am getting a new cookies file from the browser I'll try getting a debug log now

chagai95 commented 2 years ago

I'm sorry for the noob question, but how do I get the logs? I changed the logging level I think but I have no idea where the logs are...

costastf commented 2 years ago

import logging logging.basicConfig(level=logging.DEBUG) right before any other code Formatting is not right, you need a new line between the statements

costastf commented 2 years ago

Please make sure you don't upload any personal or sensitive info

chagai95 commented 2 years ago

It's a test account so I don't mind if it helps to just upload everything, not sure what is sensitive and what is not:

DEBUG:locationsharinglib.Service:Creating person for authenticated account with email whereischagai@gmail.com                                                     

DEBUG:locationsharinglib.Service:Missing essential info, cannot instantiate authenticated person whereischagai@gmail.com: list index out of range      

Is this the same error that comes when the caches are wrong?

chagai95 commented 2 years ago

Ok I think the problem was with Get cookies extension because I just logged in from another browser and got the cookies from there and it worked, sorry for bothering, thx again!

costastf commented 2 years ago

No, but this is not an error per se, it might be normal to not be able to get the authenticated person details. Do you not see the shared accounts though? What does the debug show when you try to iterate over the shared accounts?

costastf commented 2 years ago

👍

costastf commented 2 years ago

Glad it worked out😊