eklypss / PUBGSharp

C# wrapper for PUBG stats API
25 stars 14 forks source link

PUBGSharpException > 'Player data is not valid....' #27

Open Arrowka opened 6 years ago

Arrowka commented 6 years ago

Hi!

First of all, i wanna say thank you to this nugget, but unfortunatelly not working for me. :( I have api key, but GetPlayerStatsAsync result's is always throw the following ex: 'Player data is not valid.. Player might not exist, or their stats have not been updated yet.' What's the problem?

HoundThe commented 6 years ago

It's not the PUBGSharp fault, although it could print the error message. The problem is that the PUBGTracker API is down. And it's been down for over a month. There is still a way go to get the data, but that's something you have to figure out.

Arrowka commented 6 years ago

Hm.. Are you sure of it? The WebBrowser give me the following result: {"message":"No API key found in request"}. This points to the fact that the API is working.

HoundThe commented 6 years ago

I am sure, maybe try it yourself? You'll get json file containing "error" : "Api is disabled because of a throttling we get from Bluehole... .... ".

PoweredbyDoS commented 6 years ago

Yes, as CGKajm advised this service is 100% Reliant on the Pubgstats API, when it's down you wont get data. You also can't simply put the request link in the address bar of your web browser, you need to pass the API-Key in headers.

image`

Unfortunately PUBGTracker is less than forthcoming in exactly what is going on or eta of outage, however as mentioned apparently it is out of their hands due to throttling direct with Bluehole and no doubt their own website takes their priority.

I pass errors onto response to users. image

Hoping they get this sorted sooner rather than later!

ghost commented 6 years ago

It's sad that bluehole is throttling on their end.

I recently found out that pubg.op.gg also has a api. Its far more smaller but it feature the overall stats but no history if i see it right.

I created a netcore library for it on my repo. If you find it interesting and find new endpoints feel free to contribute to the repo

HoundThe commented 6 years ago

There is also still a way to get data from PUBGTracker, but if pubg.op.gg has API now, that's cool

ghost commented 6 years ago

Looked again in and Found the Game History Endpoint and the Deathlist for each game in cronologic order. Pushed it already

https://github.com/EolmY/PUBGOPGG/releases/tag/0.2

Arrowka commented 6 years ago

Thank You! Its Working Fine!

Arrowka commented 6 years ago

Me again! :D One question. I cant find Team mates name in the datas. Can you help me how can i find it?