Skip to content

"The cookies provided by FlareSolverr are not valid" #39

Description

@Divi-0

Hi, when I send a request with the ClearenceHandler in C# I get an exception with the message "The cookies provided by FlareSolverr are not valid".
Here is the code that I am executing

var handler = new ClearanceHandler("http://localhost:8191/")
{
    MaxTimeout = 60000
};

var client = new HttpClient(handler);
var request = new HttpRequestMessage
{
    RequestUri = new Uri("https://www.crunchyroll.com", UriKind.Absolute),
    Method = HttpMethod.Get
};
var response = await client.SendAsync(request);

But when I send a request via curl everything works fine, I get a valid response

curl -L -X POST 'http://localhost:8191/v1' -H 'Content-Type: application/json' --data-raw '{
  "cmd": "request.get",
  "url": "https://www.crunchyroll.com",
  "maxTimeout": 60000
}'

The log messages in the FlareSolverr container are for both methods the same.

I saw that the ClearenceHandler is sending 3 request, 2 via the normal HttpClient and one with the FlareSolverr and then just apply the cookies. Could this maybe cause a problem?

FlareSolverr v3.3.25
FlareSolverrSharp v3.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions