eklypss / PUBGSharp

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

Failed to deserialize data - new region #18

Open yvanruth opened 6 years ago

yvanruth commented 6 years ago

After pubgtracker.com added the newew regions, the data may not be deserialized propperly anymore when someone played on for example a 'Korean' server.

Here is a screenshot showing the actual error (debug mode): https://www.screencast.com/t/kk3vBW3Rq3Bh

I think this can be fixxed by updating the class, so the data can be deserialized again. (Stats[37] - Season -> enumerator?)

With kind regards, Younes van Ruth

beartastic commented 6 years ago

Latest fork merge solves this.

ghost commented 6 years ago

I have the same kind of error:

Failed to deserialize data: Error converting value "krjp" to type 'PUBGSharp.Data.Region'. Path 'Stats[9].Region', line 1, position 76790.

I guess the fork merge didn't do fixes then.

eklypss commented 6 years ago

It's a problem with AppVeyor not publishing then new package version to NuGet. I'll check it out soon.

edit: I manually uploaded it, version 1.3.3 should work fine.