PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

AuthException("Username/password not correctly specified")

Open ferbeb opened this issue 10 years ago • 1 comments

When setting username/password in the config.json file, an AuthException is thrown by the pgoapi:

if not isinstance(username, str) or not isinstance(password, str): raise AuthException("Username/password not correctly specified")

It checks for instance of str, which does not cover unicode strings, as read by load.update(json.load(data)) in pokecli.py.

The issue is fixed when editing the login line to if not self.api.login(self.config.auth_service.encode('ascii'), self.config.username.encode('ascii'), self.config.password.encode('ascii')):

Did I mess something up or does no one else seem to be using the config.json file?

ferbeb avatar Jul 22 '16 12:07 ferbeb

Fixed by d2e01d0.

ferbeb avatar Jul 22 '16 13:07 ferbeb