FlareSolverr: [yggtorrent] (testing) Exception: System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.

Environment

  • FlareSolverr version: 2.2.10
  • Last working FlareSolverr version: unsure, couple of days ago
  • Operating system: Debian 11
  • Are you using Docker: no
  • FlareSolverr User-Agent (see log traces or / endpoint):
  • Are you using a proxy or VPN?: no
  • Are you using Captcha Solver: [yes/no]
  • If using captcha solver, which one:
  • URL to test this issue:

Description

[List steps to reproduce the error and details on what happens and what you expected to happen]

Logged Error Messages

Jackett.Common.IndexerException: Exception (yggtorrent): Exception: System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 55 seconds elapsing.
 ---> System.TimeoutException: The operation was canceled.
 ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
 ---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled.
 ---> System.Net.Sockets.SocketException (125): Operation canceled
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at FlareSolverrSharp.Solvers.FlareSolverr.<>c__DisplayClass10_0.<<SendFlareSolverrRequest>b__0>d.MoveNext()
 ---> FlareSolverrSharp.Exceptions.FlareSolverrException: Exception: System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 55 seconds elapsing.
 ---> System.TimeoutException: The operation was canceled.
 ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
 ---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled.
 ---> System.Net.Sockets.SocketException (125): Operation canceled
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at FlareSolverrSharp.Solvers.FlareSolverr.<>c__DisplayClass10_0.<<SendFlareSolverrRequest>b__0>d.MoveNext()
   at FlareSolverrSharp.Solvers.FlareSolverr.<>c__DisplayClass10_0.<<SendFlareSolverrRequest>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at FlareSolverrSharp.Utilities.SemaphoreLocker.LockAsync[T](Func`1 worker)
   at FlareSolverrSharp.Solvers.FlareSolverr.SendFlareSolverrRequest(HttpContent flareSolverrRequest)
   at FlareSolverrSharp.Solvers.FlareSolverr.Solve(HttpRequestMessage request, String sessionId)
   at FlareSolverrSharp.ClearanceHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Jackett.Common.Utils.Clients.HttpWebClient2.Run(WebRequest webRequest) in /home/vsts/work/1/s/src/Jackett.Common/Utils/Clients/HttpWebClient2.cs:line 179
   at Jackett.Common.Utils.Clients.WebClient.GetResultAsync(WebRequest request) in /home/vsts/work/1/s/src/Jackett.Common/Utils/Clients/WebClient.cs:line 186
   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 522
   at Jackett.Common.Indexers.CardigannIndexer.PerformQuery(TorznabQuery query) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 1414
   at Jackett.Common.Indexers.BaseIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 310
   --- 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 322
   at Jackett.Common.Indexers.BaseWebIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 692
   at Jackett.Common.Services.IndexerManagerService.TestIndexer(String name) in /home/vsts/work/1/s/src/Jackett.Common/Services/IndexerManagerService.cs:line 311
   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|20_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.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 Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
   at Jackett.Server.Middleware.CustomExceptionHandler.Invoke(HttpContext httpContext) in /home/vsts/work/1/s/src/Jackett.Server/Middleware/CustomExceptionHandler.cs:line 26

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 20
  • Comments: 105 (14 by maintainers)

Most upvoted comments

On Yggtorrent forum, they say Flaresolverr blocked RSS flux to prevent DDoS attacks, the issue should be solved in a few days.

Released FlareSolverr 3.0.0 and Jackett 0.20.2486 => #650

For me it worked until yesterday, around 6:30pm. Reinstall does nothing, as well as increasing timeout. Sometimes testing with curl works, but very unstable.

Additional to this, I can see that the cloudflare.ts mention #cf-challenge-running which it seems to be now #challenge-running. I tried with adding it but no luck.

– FlareSolverr version: 2.2.10 Last working FlareSolverr version: 2.2.10 Operating system: Debian 11 Are you using Docker: NO FlareSolverr User-Agent (see log traces or / endpoint): N/A Are you using a proxy or VPN?: NO Are you using Captcha Solver: [yes/no] NO If using captcha solver, which one: N/A URL to test this issue: N/A

Any chance to github your fork of v3beta to have it "ready to use " ? I’m not a “rebuild our own docker image” guy TBH …

Well, I managed on my side to make the whole thing work as expected, here are the conditions met on my side:

Flaresolverr logs:

2023-01-02 23:20:35 INFO     Incoming request => POST /v1 body: {'maxTimeout': 60000, 'cmd': 'request.get', 'url': 'https://www6.yggtorrent.lol/', 'userAgent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36', 'proxy': {}}
2023-01-02 23:20:35 WARNING  Request parameter 'userAgent' was removed in FlareSolverr v2.
2023-01-02 23:20:36 INFO     Challenge detected. Selector found: #challenge-spinner
2023-01-02 23:20:48 INFO     Response in 12.999 s
2023-01-02 23:20:48 INFO     <IP> POST http://flaresolverr:8191/v1 200 OK

YGGcookie seems not to work for a dedicated server (without UI), as if you login from home and paste cookies in prowlarr on your dedicated cloud server, origin IP will be different. Don’t forget that.

I had the same error as a lot of us here but I was able to resolve it by making the request from a french IP, using FlareSolverr 3.0.0.beta3, and using Prowlarr instead of Jackett. When testing the indexer, Jackett was making 2 requests (for pagination I think.) and the second request would always fail, not sure why… Using Prowlarr has fixed this. Also, I couldn’t make it works with cookies, I had to use credentials in Prowlarr. Hope to help those facing the same issue.

And this is where I disagree with you. Flaresolverr should be able to bypass the I am under attack mode. Someone said that the Cloudflare page had changed recently and some captcha couldn’t be solved. Maybe it isn’t possible to solve it, but I do think that asking someone who knows about it (the maintainer of this repository) will definitely help, whether it being solving the problem or explaining more clearly what is happening.

No, flaresolverr are not able to bypass captcha ( https://github.com/FlareSolverr/FlareSolverr#captcha-solvers ) at all. IAUA have different kind of challenge : ( https://developers.cloudflare.com/fundamentals/get-started/concepts/cloudflare-challenges/#managed-challenge-recommended ) depending the IP you come from. If you’re on dedicated server IP or under VPN IP, you have 100% chance to be prompt for captcha. On your ISP IP, it’s could work or not…

That’s why, only thing to do are to wait after ygg, and don’t spend much time for this.

To clarify, in terms of functionality nothing has changed, as I don’t think FlareSolverr has ever been able to bypass IAUA, so it’s not an issue with FlareSolverr or something which needs updated.

Totally agree for the Ygg issue, but i share the logs because it’s going to an infinite loop Timeout waiting for selector loop till the final timeout. and so never popup an err like Captcha detected but no automatic solver is configured like i ad before in the same case ( IAUA ). So could be an issue or err improvement.

the last version of FlareSolverr work great for me spécial thank to développer

2023-01-05 10:54:56 INFO FlareSolverr 3.0.0 2023-01-05 10:54:56 INFO Testing web browser installation… 2023-01-05 10:54:57 INFO FlareSolverr User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 2023-01-05 10:54:57 INFO Test successful 2023-01-05 10:54:57 INFO Serving on http://0.0.0.0:8191 2023-01-05 11:07:20 INFO Incoming request => POST /v1 body: {‘maxTimeout’: 55000, ‘cmd’: ‘request.get’, ‘url’: ‘https://www6.yggtorrent.lol/engine/search?category=all&name=&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date’} 2023-01-05 11:07:21 INFO Challenge detected. Title found: Just a moment… 2023-01-05 11:07:23 INFO Challenge solved! 2023-01-05 11:07:23 INFO Response in 2.996 s 2023-01-05 11:07:23 INFO 172.18.0.3 POST http://flaresolverr:8191/v1 200 OK 2023-01-05 11:07:26 INFO Incoming request => POST /v1 body: {‘maxTimeout’: 55000, ‘cmd’: ‘request.get’, ‘url’: ‘https://www6.yggtorrent.lol/’} 2023-01-05 11:07:27 INFO Challenge detected. Title found: Just a moment… 2023-01-05 11:07:29 INFO Challenge solved! 2023-01-05 11:07:29 INFO Response in 2.7 s 2023-01-05 11:07:29 INFO 172.18.0.3 POST http://flaresolverr:8191/v1 200 OK

On beta3 with https://www6.yggtorrent.lol/ i’ve this result in jackett 😦 “FlareSolverr was unable to process the request, please check FlareSolverr logs. Message: Unable to solve captcha of type turnstile”

FYI with the v3beta, up to date undetected_chromedriver, and a custom User-Agent (in Jackett), I have no more problem with Yggtorrent.

On beta3 with https://www6.yggtorrent.lol/ i’ve this result in jackett 😦 “FlareSolverr was unable to process the request, please check FlareSolverr logs. Message: Unable to solve captcha of type turnstile”

And Logs: 2023-01-03 22:07:19 INFO 172.17.0.1 POST http://localhost:8191/v1 200 OK 2023-01-03 22:08:18 INFO Incoming request => POST /v1 body: {‘maxTimeout’: 60000, ‘cmd’: ‘request.get’, ‘url’: ‘https://www6.yggtorrent.lol/’} 2023-01-03 22:08:25 INFO Challenge detected. Selector found: #challenge-spinner 2023-01-03 22:08:43 INFO Response in 25.179 s 2023-01-03 22:08:43 INFO 172.17.0.1 POST http://localhost:8191/v1 200 OK

Any tips ?

Working well with ghcr.io/aeonlucid/flaresolverr:v3beta fork!

Log:

2023-01-03 09:22:05 INFO Incoming request => POST /v1 body: {‘maxTimeout’: 80000, ‘cmd’: ‘request.get’, ‘url’: ‘https://www6.yggtorrent.lol/’} 2023-01-03 09:22:08 INFO Challenge detected. Selector found: #challenge-spinner 2023-01-03 09:22:19 INFO Challenge solved! 2023-01-03 09:22:19 INFO Response in 13.399 s 2023-01-03 09:22:19 INFO 172.19.0.1 POST http://192.168.1.192:8191/v1 200 OK 2023-01-03 09:22:30 INFO Incoming request => POST /v1 body: {‘maxTimeout’: 80000, ‘cmd’: ‘request.get’, ‘url’: ‘https://www6.yggtorrent.lol/’} 2023-01-03 09:22:33 INFO Challenge detected. Selector found: #challenge-spinner 2023-01-03 09:22:34 INFO Challenge solved! 2023-01-03 09:22:34 INFO Response in 4.113 s

Thanks! @JigSawFr

It’s working for some (like me), but not for others. Once their Cloudflare protection is stepped down (i.e. when people stop DDoSing them), there shouldn’t be any issues.

After enabling LOG_LEVEL=debug I can see a #trk_jschal_js loop @ilike2burnthing did you do something special to make it work?

[...]
2022-11-22T19:42:02+01:00 DEBUG REQ-4 Found challenge element again
2022-11-22T19:42:02+01:00 DEBUG REQ-4 Waiting for Cloudflare challenge...
2022-11-22T19:42:03+01:00 DEBUG REQ-4 Javascript challenge element '#trk_jschal_js' detected.
2022-11-22T19:42:03+01:00 DEBUG REQ-4 Found challenge element again
2022-11-22T19:42:03+01:00 DEBUG REQ-4 Waiting for Cloudflare challenge...
2022-11-22T19:42:04+01:00 DEBUG REQ-4 Javascript challenge element '#trk_jschal_js' detected.
2022-11-22T19:42:04+01:00 DEBUG REQ-4 Found challenge element again
2022-11-22T19:42:04+01:00 DEBUG REQ-4 Waiting for Cloudflare challenge...
2022-11-22T19:42:05+01:00 DEBUG REQ-4 Javascript challenge element '#trk_jschal_js' detected.
2022-11-22T19:42:05+01:00 DEBUG REQ-4 Found challenge element again
2022-11-22T19:42:05+01:00 DEBUG REQ-4 Waiting for Cloudflare challenge...
2022-11-22T19:42:06+01:00 DEBUG REQ-4 Javascript challenge element '#trk_jschal_js' detected.
2022-11-22T19:42:06+01:00 DEBUG REQ-4 Found challenge element again
2022-11-22T19:42:06+01:00 DEBUG REQ-4 Waiting for Cloudflare challenge...
2022-11-22T19:42:07+01:00 DEBUG REQ-4 Javascript challenge element '#trk_jschal_js' detected.
2022-11-22T19:42:08+01:00 DEBUG REQ-4 Found challenge element again
2022-11-22T19:42:08+01:00 DEBUG REQ-4 Waiting for Cloudflare challenge...
2022-11-22T19:42:09+01:00 DEBUG REQ-4 Javascript challenge element '#trk_jschal_js' detected.
2022-11-22T19:42:09+01:00 DEBUG REQ-4 Found challenge element again
2022-11-22T19:42:09+01:00 DEBUG REQ-4 Waiting for Cloudflare challenge...
2022-11-22T19:42:10+01:00 INFO REQ-4 Response in 76.649 s
2022-11-22T19:42:10+01:00 DEBUG REQ-4 Unexpected error: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
2022-11-22T19:42:10+01:00 DEBUG REQ-4 Validating HTML code...

Yes, also Cloudflare present random captcha’s depending on their detection algorithm, turnstile captcha seems to be problematic with undetected chrome driver atm https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/827

The @hcharbonnier idea does not work for me, so it does not work for everyone.

  1. The fork https://github.com/AeonLucid/FlareSolverr already has an up-to-date undetected_chromedriver and it still does not work:https://github.com/AeonLucid/FlareSolverr/issues/2

  2. FlareSolverr upstream v3beta branch even with an up-to-date undetected_chromedriver does not work.

janv. 04 13:03:22 arch-server flaresolverr[1449818]: 2023-01-04 13:03:22 INFO     Incoming request => POST /v1 body: {'maxTimeout': 60000, 'cmd': 'request.get', 'url': 'https://www6.yggt>
janv. 04 13:03:22 arch-server flaresolverr[1449818]: 2023-01-04 13:03:22 WARNING  Request parameter 'userAgent' was removed in FlareSolverr v2.
janv. 04 13:03:27 arch-server flaresolverr[1449818]: 2023-01-04 13:03:27 INFO     Challenge detected. Selector found: #trk_jschal_js
janv. 04 13:04:25 arch-server flaresolverr[1449818]: 2023-01-04 13:04:25 ERROR    Error: Error solving the challenge. Timeout after 60.0 seconds.
janv. 04 13:04:25 arch-server flaresolverr[1449818]: 2023-01-04 13:04:25 INFO     Response in 62.657 s
janv. 04 13:04:25 arch-server flaresolverr[1449818]: 2023-01-04 13:04:25 INFO     127.0.0.1 POST http://localhost:8191/v1 500 Internal Server Error
  1. Not everyone is using Jackett ; many have switched to Prowlarr ; and the User-Agent modification is not in Jackett upstream.

I’d say we should wait for a reply from @ngosang here and from @AeonLucid there.

On beta3 with https://www6.yggtorrent.lol/ i’ve this result in jackett 😦 “FlareSolverr was unable to process the request, please check FlareSolverr logs. Message: Unable to solve captcha of type turnstile”

FYI with the v3beta, up to date undetected_chromedriver, and a custom User-Agent (in Jackett), I have no more problem with Yggtorrent.

how do you manage this precisely ?

@dr400 @Seluj78 did you tried the flaresolverr fork as mentioned ?

I do confirm that my above configuration with the flaresolverr fork provided in this thread is WORKING !

Thanks for the trick !

But it is broken … again 😤

Well, I managed on my side to make the whole thing work as expected, here are the conditions met on my side:

* Docker Engine

* Prowlarr Container (_[cr.hotio.dev/hotio/prowlarr:testing](https://hotio.dev/containers/prowlarr/)_) (v1.0.0.2171 atm.)

* Flare Solverr Container, aeonlucid fork (_[ghcr.io/aeonlucid/flaresolverr:v3.0.0](https://github.com/aeonlucid/FlareSolverr/pkgs/container/flaresolverr)_)

* Hetzner Dedicated Server (_and so, a DE IPv4/v6 provided by Hetzner Online GmbH_)

* YGGtorrent definition (_with login form, not the cookie version !_)

* Not using Cloudflare DNS.

I can confirm that using aeonlucid’s fork solved the issue for me. Thank you very much for sharing! 🎉

It looks like it isn’t working right now for me…

It was random earlier, but now it won’t work anymore

flaresolverr    | 2023-01-03 11:30:53 INFO     ReqId 139815611610688 Incoming request => POST /v1 body: {'maxTimeout': 60000, 'cmd': 'request.get', 'url': 'https://www6.yggtorrent.lol/engine/search?category=all&name=&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date', 'userAgent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36', 'proxy': {}}
flaresolverr    | 2023-01-03 11:30:53 WARNING  ReqId 139815611610688 Request parameter 'userAgent' was removed in FlareSolverr v2.
flaresolverr    | 2023-01-03 11:30:53 DEBUG    ReqId 139815611610688 Launching web browser...
flaresolverr    | 2023-01-03 11:30:53 DEBUG    ReqId 139815611610688 Started executable: `/app/.local/share/undetected_chromedriver/chromedriver` in a child process with pid: 5573
flaresolverr    | 2023-01-03 11:30:58 DEBUG    ReqId 139815576991296 Navigating to... https://www6.yggtorrent.lol/engine/search?category=all&name=&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date
flaresolverr    | 2023-01-03 11:31:00 INFO     ReqId 139815576991296 Challenge detected. Selector found: #challenge-spinner
flaresolverr    | 2023-01-03 11:31:00 DEBUG    ReqId 139815576991296 Waiting for selector: #cf-challenge-running
flaresolverr    | 2023-01-03 11:31:00 DEBUG    ReqId 139815576991296 Waiting for selector: .ray_id
flaresolverr    | 2023-01-03 11:31:00 DEBUG    ReqId 139815576991296 Waiting for selector: .attack-box
flaresolverr    | 2023-01-03 11:31:00 DEBUG    ReqId 139815576991296 Waiting for selector: #cf-please-wait
flaresolverr    | 2023-01-03 11:31:00 DEBUG    ReqId 139815576991296 Waiting for selector: #challenge-spinner
flaresolverr    | 2023-01-03 11:31:06 DEBUG    ReqId 139815576991296 Detected turnstile captcha
flaresolverr    | 2023-01-03 11:31:06 DEBUG    ReqId 139815576991296 [turnstile] Searching for button
flaresolverr    | 2023-01-03 11:31:06 DEBUG    ReqId 139815576991296 [turnstile] Clicking button
flaresolverr    | 2023-01-03 11:31:06 DEBUG    ReqId 139815576991296 Waiting for selector: #cf-challenge-running
flaresolverr    | 2023-01-03 11:31:06 DEBUG    ReqId 139815576991296 Waiting for selector: .ray_id
flaresolverr    | 2023-01-03 11:31:06 DEBUG    ReqId 139815576991296 Waiting for selector: .attack-box
flaresolverr    | 2023-01-03 11:31:06 DEBUG    ReqId 139815576991296 Waiting for selector: #cf-please-wait
flaresolverr    | 2023-01-03 11:31:06 DEBUG    ReqId 139815576991296 Waiting for selector: #challenge-spinner
tautulli        | 2023-01-03 12:31:10 - DEBUG :: ThreadPoolExecutor-0_0 : Tautulli TimelineHandler :: Starting callback for library item '' (40418) after delay.
tautulli        | 2023-01-03 12:31:11 - DEBUG :: ThreadPoolExecutor-0_0 : Tautulli TimelineHandler :: Library item 'Turning Red' (40418) added to Plex.
tautulli        | 2023-01-03 12:31:15 - DEBUG :: ThreadPoolExecutor-0_0 : Added 1 items to the recently_added database table.
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Timeout waiting for selector
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Waiting for selector: #cf-challenge-running
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Waiting for selector: .ray_id
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Waiting for selector: .attack-box
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Waiting for selector: #cf-please-wait
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Waiting for selector: #challenge-spinner
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Waiting for selector: #trk_jschal_js
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Waiting for selector: #link-ddg
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Waiting for selector: td.info #js_info
flaresolverr    | 2023-01-03 11:31:17 DEBUG    ReqId 139815576991296 Waiting for redirect
flaresolverr    | 2023-01-03 11:31:58 ERROR    ReqId 139815611610688 Error: Error solving the challenge. Timeout after 60.0 seconds.
flaresolverr    | 2023-01-03 11:31:58 DEBUG    ReqId 139815611610688 Response => POST /v1 body: {'status': 'error', 'message': 'Error: Error solving the challenge. Timeout after 60.0 seconds.', 'startTimestamp': 1672745453856, 'endTimestamp': 1672745518301, 'version': '3.0.0'}
flaresolverr    | 2023-01-03 11:31:58 INFO     ReqId 139815611610688 Response in 64.445 s
flaresolverr    | 2023-01-03 11:31:58 INFO     ReqId 139815611610688 192.168.160.1 POST https://flaresolverr.seluj78.fr/v1 500 Internal Server Error

I’m using UnRaid, i have deployed it (ghcr.io/aeonlucid/flaresolverr:v3beta) with the docker run if i did it correctly :

{“msg”: “FlareSolverr is ready!”, “version”: “3.0.0”, “userAgent”: “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”}

  • Docker
  • Jackett container (lscr.io/linuxserver/jackett:latest) (v0.20.2469) / Prowlarr gives me 403 error
  • FlareSolverr container (ghcr.io/aeonlucid/flaresolverr:v3beta)
  • UnRaid from France
  • YGGtorrent
  • Google DNS / tried CF DNS too

Seems the Flaresolver is working great

03/01/2023 12:18:11 INFO 172.17.0.1 POST http://192.168.1.34:8191/v1 200 OK 03/01/2023 12:18:21 INFO Incoming request => POST /v1 body: {‘maxTimeout’: 50000, ‘cmd’: ‘request.get’, ‘url’: ‘https://www6.yggtorrent.lol/’} 03/01/2023 12:18:22 INFO Challenge detected. Selector found: #challenge-spinner 03/01/2023 12:18:23 INFO Challenge solved! 03/01/2023 12:18:23 INFO Response in 2.009 s

But it’s falling on Jackett i still got some error

03/01/2023 12:18:30 Info Torznab search in YGGtorrent for The Covenant 2006 => Found 2 releases 03/01/2023 12:18:37 Error Vous devez vous connecter pour télécharger un torrent 03/01/2023 12:18:37 Error Error downloading. indexer: yggtorrent path: https://www6.yggtorrent.lol/engine/download_torrent?id=693543 03/01/2023 12:18:37 System.Exception: BencodeParser failed 03/01/2023 12:18:37 —> BencodeNET.Exceptions.InvalidBencodeException`1[BencodeNET.Objects.IBObject]: Failed to parse IBObject. Invalid beginning character of object. Found ‘V’ at position 0. Valid characters are: 0-9, ‘i’, ‘l’ and ‘d’ 03/01/2023 12:18:37 at BencodeNET.Parsing.BencodeParser.Parse(BencodeReader reader) 03/01/2023 12:18:37 at BencodeNET.Parsing.BencodeParserExtensions.Parse(IBencodeParser parser, Stream stream) 03/01/2023 12:18:37 at BencodeNET.Parsing.BencodeParserExtensions.Parse(IBencodeParser parser, Byte[] bytes) 03/01/2023 12:18:37 at Jackett.Server.Controllers.DownloadController.Download(String indexerID, String path, String jackett_apikey, String file) in /home/vsts/work/1/s/src/Jackett.Server/Controllers/DownloadController.cs:line 78 03/01/2023 12:18:37 — End of inner exception stack trace — 03/01/2023 12:18:37 at Jackett.Server.Controllers.DownloadController.Download(String indexerID, String path, String jackett_apikey, String file) in /home/vsts/work/1/s/src/Jackett.Server/Controllers/DownloadController.cs:line 85


After few diging, it works !

@MartnIV nice thanks for your comment, this fork has ability to bypass Cloudflare IUAM mode ( I’m Under Attack Mode)

And this is where I disagree with you. Flaresolverr should be able to bypass the I am under attack mode. Someone said that the Cloudflare page had changed recently and some captcha couldn’t be solved. Maybe it isn’t possible to solve it, but I do think that asking someone who knows about it (the maintainer of this repository) will definitely help, whether it being solving the problem or explaining more clearly what is happening.

It’s not a FlareSolverr issue. The YGG mods have said it’s a purposeful, temporary action on their part to protect against DDoS attacks. The only thing that’s going to change that is them dropping said protection. They said this nearly a week ago, nothing has changed, so it would be great if people could stop posting ‘same here’ comments and their own theories.

Do you have any greater success if you try to reconfigure the indexer?

Same as @BartoX360, no luck

Same for me, but for yggcookie it Will work for 1 or 2 research, and result in the bug to appear again unless I redo the cookie setting, again and again

I tried to install FlareSolverr 3.0.0.beta3 and put Cloudflare DNS but i still have the issue 😦.

2022-11-22 21:26:18 INFO     FlareSolverr 3.0.0.beta3
2022-11-22 21:26:18 INFO     Testing web browser installation...
2022-11-22 21:26:19 INFO     FlareSolverr User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
2022-11-22 21:26:19 INFO     Test successful
2022-11-22 21:26:19 INFO     Serving on http://0.0.0.0:8191
2022-11-22 21:27:27 INFO     Incoming request => POST /v1 body: {'maxTimeout': 55000, 'cmd': 'request.get', 'url': 'https://www5.yggtorrent.fi/engine/search?category=all&name=&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date'}
2022-11-22 21:27:29 INFO     Challenge detected. Selector found: #trk_jschal_js
2022-11-22 21:28:23 ERROR    Error: Error solving the challenge. Timeout after 55.0 seconds.
2022-11-22 21:28:23 INFO     Response in 55.707 s
2022-11-22 21:28:23 INFO     172.19.0.12 POST http://flaresolverr:8191/v1 500 Internal Server Error

Tested also on FlareSolverr v3beta and it provides me a better view :

2022-11-22 17:34:41 INFO     FlareSolverr 3.0.0.beta2
2022-11-22 17:34:41 INFO     Testing web browser installation...
2022-11-22 17:34:41 INFO     Chrome major version: 107
2022-11-22 17:34:42 INFO     FlareSolverr User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
2022-11-22 17:34:42 INFO     Test successful
2022-11-22 17:34:42 INFO     Serving on http://0.0.0.0:8191
2022-11-22 17:34:55 INFO     Incoming request => POST /v1 body: {'cmd': 'request.get', 'url': 'https://yggtorrent.fi/', 'maxTimeout': 70000}
2022-11-22 17:34:56 INFO     Challenge detected. Selector found: #trk_jschal_js
2022-11-22 17:36:06 ERROR    Error: Error solving the challenge. Timeout after 70.0 seconds.
2022-11-22 17:36:06 INFO     Response in 70.749 s
2022-11-22 17:36:06 INFO     127.0.0.1 POST http://localhost:8191/v1 500 Internal Server Error