PokemonGo-Bot
PokemonGo-Bot copied to clipboard
AuthException("Username/password not correctly specified")
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?
Fixed by d2e01d0.