TodoLodo / cod-python-api

Call Of Duty API Library for python
https://cod-python-api.todolodo.xyz
GNU General Public License v3.0
54 stars 16 forks source link

Authentication fails (Platform: Activision) #23

Closed farhanghazi97 closed 1 year ago

farhanghazi97 commented 1 year ago

To reproduce:

api = API()
api.login('<sso_token_goes_here>')
data = api.ModernWarfare2.fullData(gamertag="<username goes here>", platform=platforms.Activision)
return JsonResponse({"stats": data})

The above code is part of an API endpoint on my server that is invoked via GET. Testing it with Postman yields the following response:

{
    'status': 'error', 
    'data': {
        'type": 'com.activision.mt.common.stdtools.exceptions.NoStackTraceException', 
        'message': 'Error from datastore'
    }
}

Expected behavior The above endpoint with the correct credentials (i.e SSO token) should yield a successful response.

Desktop (please complete the following information):

Additional context I have confirmed that I am using:

farhanghazi97 commented 1 year ago

I've been advised via Discord that the API server is currently down. It will be back up around 15th Feb, 2023 (tentative).

TodoLodo commented 1 year ago

Yes you have been advised correctly, the response isnt an error but the response given by the end point Keep yourself updated at our discord server