geel9 / SteamAuth

A C# library that provides vital Steam Mobile Authenticator functionality
MIT License
276 stars 102 forks source link

Login Web Request response in HTML instead of JSON, crashing program #95

Closed lorppijw closed 1 year ago

lorppijw commented 1 year ago

I still keep having this problem where this: string response = SteamWeb.Request(APIEndpoints.COMMUNITY_BASE + "/steamguard/phoneajax", "POST", postData, _cookies); returns a steam html page instead of a json response when I try to setup a new account.

Newtonsoft.Json.JsonReaderException: 'Unexpected character encountered while parsing value: <. Path '', line 0, position 0.'

dyc3 commented 1 year ago

I believe the best way to fix this would be to use IPhoneService instead.

Jessecar96 commented 1 year ago

This is resolved in the latest commits. We use IPhoneService now like the app does.