babelshift / SteamWebAPI2

🎮 C# / .NET library that makes it easy to use the Steam Web API. It conveniently wraps around all of the JSON data and ugly API details with clean methods, structures and classes.
MIT License
262 stars 43 forks source link

await econItems.GetSchemaForTF2Async() crashes in the latest NuGet package. #33

Closed Tvde1 closed 7 years ago

Tvde1 commented 7 years ago

I had been using this for a week now, but it keeps crashing.

Here's the exception it throws: image I've checked that the Steam API was not having troubles.

Tvde1 commented 7 years ago

Oh and often it doesn't break, it just returns null.

Tvde1 commented 7 years ago

Yeah, with:

            econItems = new EconItems(key, EconItemsAppId.TeamFortress2);
            schemaModel = await econItems.GetSchemaForTF2Async();

schemaModel ends up being null always.

Tvde1 commented 7 years ago

Ah never mind. I was trying to use schemaModel before it the async was done.

babelshift commented 7 years ago

Just want to confirm, everything is OK with this method so far?

Tvde1 commented 7 years ago

Yes. It works fine.