2captcha-csharp icon indicating copy to clipboard operation
2captcha-csharp copied to clipboard

Turnstile Captcha is not working.

Open nsinghflinks opened this issue 7 months ago • 0 comments
trafficstars

I am getting System.ArgumentNullException: Value cannot be null. (Parameter 'content')

According to the documentation, I need to set action, data, and pagedata.

Code Spinnet:

public async Task SolveAsync() { var captcha = new Turnstile();

        captcha.SetData(_cData);
        captcha.SetPageData(_chlPageData);
        captcha.SetAction(_action);
        captcha.SetSiteKey(_siteKey);
        captcha.SetUrl(_url.ToString());
        
        await _solver.Solve(captcha).ConfigureAwait(false);

        return captcha.Code;
    }

All values are being populated and are not null before calling Solve Method

Thank you

nsinghflinks avatar Mar 29 '25 19:03 nsinghflinks