Open AdamB2023 opened 1 year ago
The issue is in the TaskResultModel. "cost" is declared as a string but according to Anti Captcha's docs, it's a double. Commenting out all of the unused properties (cost, ip, createTime, endTime, solveCount) fixes the issue.
public class TaskResultModel {
public int errorId { get; set; }
public string status { get; set; }
public Solution solution { get; set; }
//public double cost { get; set; }
//public string ip { get; set; }
//public int createTime { get; set; }
//public int endTime { get; set; }
//public string solveCount { get; set; }
}
i believe TaskResultModel should now look like this:
`public class TaskResultModel { public int errorId { get; set; } public string status { get; set; } public Solution solution { get; set; } public string cost { get; set; } public string ip { get; set; } public int createTime { get; set; } public int endTime { get; set; } public int solveCount { get; set; } }
public class Solution { public string gRecaptchaResponse { get; set; } public Cookies cookies { get; set; } }
public class Cookies { public string empty { get; set; } }`
Error: