You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: