-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IAFD: FlareSolverrException: The cookies provided by FlareSolverr are not valid #6
Comments
I can't reproduce the issue. It seems the site disabled Cloudflare protection, at least form me. |
As I said, I can't reproduce the issue but it could be a false positive. If you take a look that the |
I was able to solve the issue by forcing my HttpClient web requests to use 2.0:
Thanks for the help along the way |
Hello,
I'm currently running FlareSolverr and FlaresolverrSharp v2.0 released a few days ago. I am able to successfully run the Sample program (FlaresolverrSharp.Sample), but when I try to use the program with another cloudflare-protected URL I receive
FlareSolverrException: The cookies provided by FlareSolverr are not valid
On Flaresolverr's side, it appears that it cannot detect cloudflare:
The response message from Flaresolverr does have the correct HTML, so it appears Flaresolverr isn't running into the same problem the .NET webclient is.
On FlaresolverrSharp's side it does detect a cloudflare response and forwards the request to Flaresolverr. It receives the correct response, and even moves what appear to be cloudflare cookies across to the subsequent request (e.g. the __cf_bm cookie), but the .NET web request still returns the typical 403 Forbidden cloudflare response.
If you want to reproduce the issue, try changing the URL in the sample program to:
I could use Flaresolverr as a proxy for every request, but it would be nice if the captured cookies worked in a normal request.
Thanks for any assistance you can give
The text was updated successfully, but these errors were encountered: