OpenXbox / xbox-webapi-python

A python library to authenticate with Xbox Live via your Microsoft Account and provides Xbox related Web-API.
https://pypi.python.org/pypi/xbox-webapi
MIT License
175 stars 44 forks source link

Cannot authenticate #43

Closed EquusRaphanus closed 3 years ago

EquusRaphanus commented 3 years ago

Trying to authenticate following instructions in the readme fails, giving the following error:

Traceback (most recent call last):
  File "/home/USER/.local/bin/xbox-authenticate", line 8, in <module>
    sys.exit(main())
  File "/home/USER/.local/lib/python3.8/site-packages/xbox/webapi/scripts/authenticate.py", line 96, in main
    loop.run_until_complete(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/USER/.local/lib/python3.8/site-packages/xbox/webapi/scripts/authenticate.py", line 45, in async_main
    auth_mgr.oauth = OAuth2TokenResponse.parse_raw(tokens)
  File "pydantic/main.py", line 538, in pydantic.main.BaseModel.parse_raw
  File "pydantic/main.py", line 515, in pydantic.main.BaseModel.parse_obj
  File "pydantic/main.py", line 362, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 6 validation errors for OAuth2TokenResponse
token_type
  field required (type=value_error.missing)
expires_in
  field required (type=value_error.missing)
scope
  field required (type=value_error.missing)
access_token
  field required (type=value_error.missing)
refresh_token
  field required (type=value_error.missing)
user_id
  field required (type=value_error.missing)

It seems that this may be affecting xbox-tui and xbox-nano-client as well, because neither of those are working and both are complaining about authentication in their errors.

bsled96 commented 3 years ago

Did you ever figure this out?