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

Error with default argument for game_list() #1

Open
leontristain opened this issue May 3, 2020 · 0 comments
Open

Error with default argument for game_list() #1

leontristain opened this issue May 3, 2020 · 0 comments

Comments

@leontristain
Copy link

First thanks for the package!

FWIW:

Traceback (most recent call last):
  File ".\pynxm_test.py", line 9, in <module>
    print(nexus.game_list())
  File "D:\git\skyrim-builder\venv\lib\site-packages\pynxm.py", line 190, in game_list
    "get", "games.json", payload={"include_unapproved": include_unapproved}
  File "D:\git\skyrim-builder\venv\lib\site-packages\pynxm.py", line 117, in _make_request
    raise RequestError("Status Code {} - {}".format(status_code, msg))
pynxm.RequestError: Status Code 422 - Invalid parameter 'include_unapproved' value "False": Must be one of: <code>true</code>, <code>false</code>, <code>1</code>, <code>0</code>.

Looks like values get cast to strings and if a word boolean needs to have lower case first letter.

Reproducible with latest pip install pynxm (0.1.0)

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