pgoapi icon indicating copy to clipboard operation
pgoapi copied to clipboard

Not logged Exception

Open ztukaz opened this issue 9 years ago • 4 comments

After 20mins of bot i always get this except, someone has alredy managed it? Maybe fix a relog evry 15 mins?

ztukaz avatar Jul 26 '16 09:07 ztukaz

Same here... The not logged in exception should be caught, by getting a new Token.

ProLoDs avatar Aug 03 '16 09:08 ProLoDs

Yes, I'm already working on it :P

tejado avatar Aug 03 '16 09:08 tejado

something like this in the the getattr of PGoApi ? and add username and password in init and set it in the first login? try: return request.call() except NotLoggedInException as e: self.login(provider = _auth_provider, username = self._username, password = self._password, lat = self._position_lat, lng = self._position_lng, alt = self._position_alt) return request.call()

ProLoDs avatar Aug 03 '16 09:08 ProLoDs

It is not so easy... at first I have to rewrite the auth google/ptc classes to handle the refresh/access tokens in a correct way.

tejado avatar Aug 03 '16 09:08 tejado