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
177 stars 45 forks source link

Need help for Error 400 Bad Request #106

Open Seexelas opened 4 months ago

Seexelas commented 4 months ago

Hi,

If someone could explain to me what is needed to be modified to get it working, I can't get my tokens.json.

Many thanks,

      "I just found out what's wrong. For some reason, it's grabbing the wrong client ID, I defined it before requesting to refresh the token. auth_mgr._client_id = "CLIENT ID HERE" then execute the refresh_tokens() function. Not sure what causes this, but I guess be sure to overwrite whatever the client ID it has gotten. This worked in my case, if you can figure out what causes this post, or if I find anything else out I'll post here.

Originally posted by @Sat727 in https://github.com/OpenXbox/xbox-webapi-python/issues/96#issuecomment-2091231423"