FlareSolverr: The cookies provided by FlareSolverr are not valid

Environment

FlareSolverr Version: 1.2.3

Docker: yes

OS: Debian GNU/Linux 10 (buster) arm64

Last Working FlareSolverr Version: Unknown

Are you using a proxy or VPN? No

Using Captcha Solver: No

Description

Hello !

Based on the advice of @ilike2burnthing i’m openning an issue here ! You can also see the issue that was open on Jackett here #https://github.com/Jackett/Jackett/issues/11127

My setup is the following :

  • Jackett running on my host ;
  • FlareSolverr running within in a docker with the standard settings on the same host.

At the moment all the indexers which are protected by CloudFlare would fail (yggtorrent,torrent7) even tho FlareSolverr show a successful response in the logs.

“The cookies provided by FlareSolverr are not valid”.

I’ll gladly accept some help on this and i’m available if some more logs/debugging/whatever are needed.

Thank you for your work and your time !

Logged Error Messages

The logs did not provide any error , in fact they show a success :

2021-02-18T21:44:14.019Z INFO REQ-20 Cloudflare detected
2021-02-18T21:44:23.035Z INFO REQ-20 Successful response in 11.077 s
2021-02-18T22:52:08.422Z INFO REQ-21 Incoming request: GET /
2021-02-18T22:52:08.422Z INFO REQ-21 Successful response in 0 s
2021-02-18T22:52:08.422Z INFO REQ-21 FlareSolverr is ready!
2021-02-18T22:53:02.780Z INFO REQ-22 Incoming request: POST /v1
2021-02-18T22:53:02.781Z INFO REQ-22 Params: {"maxTimeout":60000,"cmd":"request.get","url":"https://www4.yggtorrent.li/engine/search?category=all&name=&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"}
2021-02-18T22:53:04.859Z INFO REQ-22 Cloudflare detected
2021-02-18T22:53:11.741Z INFO REQ-22 Successful response in 8.961 s
2021-02-18T22:53:42.122Z INFO REQ-23 Incoming request: POST /v1
2021-02-18T22:53:42.123Z INFO REQ-23 Params: {"maxTimeout":60000,"cmd":"request.get","url":"https://www4.yggtorrent.li/engine/search?category=all&name=&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"}
2021-02-18T22:53:43.274Z INFO REQ-23 Cloudflare detected
2021-02-18T22:53:50.029Z INFO REQ-23 Successful response in 7.907 s
2021-02-18T22:53:54.541Z INFO REQ-24 Incoming request: GET /
2021-02-18T22:53:54.541Z INFO REQ-24 Successful response in 0 s
2021-02-18T22:53:54.542Z INFO REQ-24 FlareSolverr is ready!

The Jackett error is the following :

Jackett.Common.IndexerException: Exception (yggcookie): The cookies provided by FlareSolverr are not valid
 ---> FlareSolverrSharp.Exceptions.FlareSolverrException: The cookies provided by FlareSolverr are not valid
   at FlareSolverrSharp.ClearanceHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
   at Jackett.Common.Utils.Clients.HttpWebClient2.Run(WebRequest webRequest) in /home/vsts/work/1/s/src/Jackett.Common/Utils/Clients/HttpWebClient2.cs:line 170
   at Jackett.Common.Utils.Clients.WebClient.GetResultAsync(WebRequest request) in /home/vsts/work/1/s/src/Jackett.Common/Utils/Clients/WebClient.cs:line 184
   at Jackett.Common.Indexers.BaseWebIndexer.RequestWithCookiesAsync(String url, String cookieOverride, RequestType method, String referer, IEnumerable`1 data, Dictionary`2 headers, String rawbody, Nullable`1 emulateBrowser) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 492
   at Jackett.Common.Indexers.CardigannIndexer.PerformQuery(TorznabQuery query) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 1271
   at Jackett.Common.Indexers.BaseIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 380
   --- End of inner exception stack trace ---
   at Jackett.Common.Indexers.BaseIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 388
   at Jackett.Common.Indexers.BaseWebIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 656
   at Jackett.Common.Services.IndexerManagerService.TestIndexer(String name) in /home/vsts/work/1/s/src/Jackett.Common/Services/IndexerManagerService.cs:line 306
   at Jackett.Server.Controllers.IndexerApiController.Test() in /home/vsts/work/1/s/src/Jackett.Server/Controllers/IndexerApiController.cs:line 132
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jackett.Server.Middleware.CustomExceptionHandler.Invoke(HttpContext httpContext) in /home/vsts/work/1/s/src/Jackett.Server/Middleware/CustomExceptionHandler.cs:line 61

Screenshots

[Place any screenshots of the issue here if needed] image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 29
  • Comments: 35 (13 by maintainers)

Most upvoted comments

I’m seeing this now on v2.0.1

Jackett.Common.IndexerException: Exception (exttorrents): The cookies provided by FlareSolverr are not valid

flaresolverr logs indicate it was successful

2021-10-29T21:04:37+11:00 INFO REQ-2 Incoming request => POST /v1 body: {"maxTimeout":55000,"cmd":"request.get","url":"https://ext.to/latest/2/?order=age&sort=desc"}
2021-10-29T21:04:39+11:00 INFO REQ-2 Cloudflare detected
2021-10-29T21:04:41+11:00 INFO REQ-2 Challenge solved
2021-10-29T21:04:44+11:00 INFO REQ-2 Response in 7.461 s

Hi, I’ve got same issues on other sites like 7torrents for example. I’ve tried YggTorrent, Yggcookie and 7torrents and they all get this error. It was working fine 5 days ago.

Either disable it for your system as a whole or switch to using a Jackett container.

See the top of this troubleshooting section - https://github.com/Jackett/Jackett/wiki/Troubleshooting#your-cookie-did-not-work-the-ssl-connection-could-not-be-established

Yep, can confirm; turning IPV6 off system-wide works.

Hello, I found a solution at the moment. I forced the DNS (8.8.8.8 & 1.1.1.1) of my Synologi and deactivated the IPv6 on my box and it worked directly.

not working for me either. disabled all ipv6 on docker host and related containers (flaresolverr and jackett)

@EnfantDup if you’re using (or able to use) Docker, you can disable IPv6 for just the Jackett and FlareSolverr containers.

Fixed in FlareSolverr v2.0.0 If you are using Jackett, version v0.18.1041 or higher is required to bypass Cloudflare.

Unless you’re adding additional information, don’t post ‘same here’ comments, just use a thumbs up reaction on the initial post to show that you’re also affected, and subscribe for notifications if you want to keep track of it.