eklypss / PUBGSharp

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

Cant get data if pubg servers are down. #25

Closed HoundThe closed 6 years ago

HoundThe commented 6 years ago

Hey is there a way to get the last non updated data? I see its viable as I saw at other people program, but I dont know how to get it here, I see when I have GetPlayerAsync and servers are down I get an exception and I cant find a way to get the older data from their database

HoundThe commented 6 years ago

When I changed your string request to string request = $"https://api.pubgtracker.com/v2/profile/pc/{playerName}"; I got it working

Stanley1551 commented 6 years ago

Great workaround, a decent fallback mechanism could be implemented this way.