Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthException("Username/password not correctly specified") #177

Closed
ferbeb opened this issue Jul 22, 2016 · 1 comment
Closed

AuthException("Username/password not correctly specified") #177

ferbeb opened this issue Jul 22, 2016 · 1 comment

Comments

@ferbeb
Copy link

ferbeb commented Jul 22, 2016

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
Copy link
Author

ferbeb commented Jul 22, 2016

Fixed by d2e01d0.

@ferbeb ferbeb closed this as completed Jul 22, 2016
MerlionRock added a commit to MerlionRock/PokemonGo-Bot that referenced this issue Aug 5, 2017
Added Gen 2 Pokemons to "evolve_for_xp" rule
There are:
| `PokemonGoF#161`<br>`Sentret`   | `PokemonGoF#220`<br>`Swinub` | `PokemonGoF#163`<br>`Hoothoot`| `PokemonGoF#165`<br>`Ledyba`  | `PokemonGoF#177`<br>`Natu`      | `PokemonGoF#167`<br>`Spinarak`  |
| `PokemonGoF#194`<br>`Wooper`    | `PokemonGoF#183`<br>`Marill` | `PokemonGoF#223`<br>`Remoraid`|                     |                       |                       |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant