Git Product home page Git Product logo

Comments (15)

majorsl avatar majorsl commented on May 17, 2024 2

Came here looking for the same thing... it wasn't apparent in the docs. May I suggest a gentle nudge to clarify that in them? It may help others.

from flaresolverr.

ilike2burnthing avatar ilike2burnthing commented on May 17, 2024 1

Yep

from flaresolverr.

ngosang avatar ngosang commented on May 17, 2024 1

I added some clarifications in the readme.
hcaptcha-solver is already included in FlareSolverr. In Docker and in local installation.
We are having problems with hcaptcha-solver. It's not working as expected, you can follow this issue #31

from flaresolverr.

ilike2burnthing avatar ilike2burnthing commented on May 17, 2024

hcaptcha should work out of the box, just need to set the env CAPTCHA_SOLVER to hcaptcha-solver

from flaresolverr.

Zeks avatar Zeks commented on May 17, 2024

so, it's already in the provided container and I only need to set environment variable when running it?

from flaresolverr.

chicungunya avatar chicungunya commented on May 17, 2024

Hello
I installed hcaptcha, flaresolverr 1.2.1, and Jackett(last version) on my docker (same host) but it does not seem to work with ygg.
Log of Jackett:


Exception in GetConfigurationForSetup (yggtorrent): FlareSolverrSharp.Exceptions.FlareSolverrException: FlareSolverr was unable to process the request, please check FlareSolverr logs. Message: Token solver failed to return a token.
   at FlareSolverrSharp.Solvers.FlareSolverr.<>c__DisplayClass5_0.<<Solve>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at FlareSolverrSharp.Utilities.SemaphoreLocker.LockAsync[T](Func`1 worker)
   at FlareSolverrSharp.Solvers.FlareSolverr.Solve(HttpRequestMessage request)
   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.GetConfigurationForSetup(Boolean automaticlogin) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 843 at Jackett.Common.Indexers.CardigannIndexer.GetConfigurationForSetup() in /home/vsts/work/1/s/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 822


And log of Flaresolverr :


      host: 'assets.hcaptcha.com',,
      protocol: 'https:',,
      [Symbol(kCapture)]: false,,
      [Symbol(kNeedDrain)]: false,,
      [Symbol(corked)]: 0,,
      [Symbol(kOutHeaders)]: [Object: null prototype],
    },,
    request: Request {,
      _events: [Object: null prototype],,
      _eventsCount: 5,,
      _maxListeners: undefined,,
      uri: [Url],,
      method: 'GET',,
      readable: true,,
      writable: true,,
      explicitMethod: true,,
      _qs: [Querystring],,
      _auth: [Auth],,
      _oauth: [OAuth],,
      _multipart: [Multipart],,
      _redirect: [Redirect],,
      _tunnel: [Tunnel],,
      _rp_resolve: [Function (anonymous)],,
      _rp_reject: [Function (anonymous)],,
      _rp_promise: [Promise],,
      _rp_callbackOrig: undefined,,
      callback: [Function (anonymous)],,
      _rp_options: [Object],,
      headers: {},,
      setHeader: [Function (anonymous)],,
      hasHeader: [Function (anonymous)],,
      getHeader: [Function (anonymous)],,
      removeHeader: [Function (anonymous)],,
      localAddress: undefined,,
      pool: {},,
      dests: [],,
      __isRequestRequest: true,,
      _callback: [Function: RP$callback],,
      proxy: null,,
      tunnel: true,,
      setHost: true,,
      originalCookieHeader: undefined,,
      _disableCookies: true,,
      _jar: undefined,,
      port: 443,,
      host: 'assets.hcaptcha.com',,
      path: '/c/500c658/hsl.js',,
      httpModule: [Object],,
      agentClass: [Function: Agent],,
      agent: [Agent],,
      _started: true,,
      href: 'https://assets.hcaptcha.com/c/500c658/hsl.js',,
      req: [ClientRequest],,
      ntick: true,,
      response: [Circular *1],,
      originalHost: 'assets.hcaptcha.com',,
      originalHostHeaderName: 'host',,
      responseContent: [Circular *1],,
      _destdata: true,,
      _ended: true,,
      _callbackCalled: true,,
      [Symbol(kCapture)]: false,
    },,
    toJSON: [Function: responseToJSON],,
    caseless: Caseless { dict: [Object] },,
    body: 'nonsense\n',,
    [Symbol(kCapture)]: false,,
    [Symbol(kHeaders)]: {,
      date: 'Wed, 30 Dec 2020 04:18:28 GMT',,
      'content-type': 'text/html',,
      'transfer-encoding': 'chunked',,
      connection: 'close',,
      'set-cookie': [Array],,
      'x-amz-meta-md5': '0377438312a93cf85307e3fa0fe437cf',,
      'x-amz-meta-privilege': '755',,
      'last-modified': 'Mon, 20 Aug 2018 21:31:04 GMT',,
      'x-amz-error-code': 'NoSuchKey',,
      'x-amz-error-message': 'The specified key does not exist.',,
      'x-amz-error-detail-key': 'c/500c658/hsl.js',,
      'x-amz-request-id': 'E4405834D2C91B71',,
      'x-amz-id-2': 'dhKUy9H4p4p2jRfxxTFzzkT7C6i6TZnU4I4r1OWucTF35ebdL1Hzxv+V7vd3rSX9lfwqd5buIFo=',,
      'cf-cache-status': 'EXPIRED',,
      'cf-request-id': '07537775aa0000925249386000000001',,
      'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',,
      'strict-transport-security': 'max-age=2592000; includeSubDomains; preload',,
      'x-content-type-options': 'nosniff',,
      server: 'cloudflare',,
      'cf-ray': '6098f502ad269252-EWR',
    },,
    [Symbol(kHeadersCount)]: 40,,
    [Symbol(kTrailers)]: null,,
    [Symbol(kTrailersCount)]: 0,,
    [Symbol(RequestTimeout)]: undefined,
  },
},
2020-12-30T04:18:29.019Z ERROR REQ-19 Token solver failed to return a token.

Do I miss something ?
Should I use the other captcha resolver with harvest point ? If yes, is it the same installation for docker? Just add an environnement on my stack ?
Should I use hcaptcha AND captcha resolver ?

Thanks !

from flaresolverr.

ilike2burnthing avatar ilike2burnthing commented on May 17, 2024

Same error - #31 (comment)

@ngosang's response:
"This solver works picking random images so it will fail in a lot of requests and it's hard to know if it's working or not. [...]
In a real use case with Sonarr/Radarr + Jackett it's really useful because those apps make a new request each 15 minutes. Eventually one of the requests is going to work and Jackett saves the cookie forever (until it stops working)."

If the problem continues, create a new issue.

from flaresolverr.

chicungunya avatar chicungunya commented on May 17, 2024

@ilike2burnthing
Thank you for your answer
The problem is that I don't use Radarr and Sonarr but Elementum for Kodi.
If I don't test my provider on Jackett before, the search doesn't work (error from Flaresolverr)
That's why I asked on Jackett's GitHub if it's possible to create a crontab every 30 min (for example) to click on Test all but nobody answered to me.

Jackett/Jackett#10664

Maybe you have a trick ?

Thanks !

from flaresolverr.

ilike2burnthing avatar ilike2burnthing commented on May 17, 2024

Ah, I need to check Jackett's recent issues actually.

You'd need to call:
http://local_IP:port/api/v2.0/indexers/indexer_id/results/torznab?apikey=apikey

e.g.:
http://192.168.0.2:19117/api/v2.0/indexers/1337x/results/torznab?apikey=1a2b3c4d5e6f7g8h9itg54ygg5t36yb3t

or for all indexers:
http://192.168.0.2:19117/api/v2.0/indexers/all/results/torznab?apikey=1a2b3c4d5e6f7g8h9itg54ygg5t36yb3t

from flaresolverr.

chicungunya avatar chicungunya commented on May 17, 2024

Thanks but I have error like this :
(I use harvester for captcha but it seems it does not work with hcaptcha or harvester)

Jackett.Common.IndexerException: Exception (yggtorrent): FlareSolverr was unable to process the request, please check FlareSolverr logs. Message: Unable to process browser request. Error: TypeError: Cannot read property 'statusCode' of undefined
 ---> System.Exception: Parse error
 ---> FlareSolverrSharp.Exceptions.FlareSolverrException: FlareSolverr was unable to process the request, please check FlareSolverr logs. Message: Unable to process browser request. Error: TypeError: Cannot read property 'statusCode' of undefined
   at FlareSolverrSharp.Solvers.FlareSolverr.<>c__DisplayClass5_0.<<Solve>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at FlareSolverrSharp.Utilities.SemaphoreLocker.LockAsync[T](Func`1 worker)
   at FlareSolverrSharp.Solvers.FlareSolverr.Solve(HttpRequestMessage request)
   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 207
   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 496
   at Jackett.Common.Indexers.CardigannIndexer.GetConfigurationForSetup(Boolean automaticlogin) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 843
   at Jackett.Common.Indexers.CardigannIndexer.DoLogin() in /home/vsts/work/1/s/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 514
   at Jackett.Common.Indexers.CardigannIndexer.PerformQuery(TorznabQuery query) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 1290
   --- End of inner exception stack trace ---
   at Jackett.Common.Indexers.BaseWebIndexer.OnParseError(String results, Exception ex) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 682
   at Jackett.Common.Indexers.CardigannIndexer.PerformQuery(TorznabQuery query) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 1620
   at Jackett.Common.Indexers.BaseIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 390
   --- 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 390
   at Jackett.Common.Indexers.BaseWebIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 659
   at Jackett.Common.Services.IndexerManagerService.TestIndexer(String name) in /home/vsts/work/1/s/src/Jackett.Common/Services/IndexerManagerService.cs:line 302
   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

from flaresolverr.

ilike2burnthing avatar ilike2burnthing commented on May 17, 2024

Can you open a new issue here for this?

We'll leave this one for the request of clarifying the docs Re: not needing to install hcaptcha.

from flaresolverr.

kriegalex avatar kriegalex commented on May 17, 2024

Well, in the doc, it's still written that you need to run npm i hcaptcha-solver

And for me, logs were saying the token could not be retrieved. I ran this command and it said it installed things. After that, the token was retrieved successfully. Was it a coincidence that the solver worked randomly at that exact moment ?

from flaresolverr.

ilike2burnthing avatar ilike2burnthing commented on May 17, 2024

@ngosang is there a situation under which hcaptcha does need installed (e.g. installing natively from source), or is it just a case of enabling it for FlareSolverr?

from flaresolverr.

XPheNiiX avatar XPheNiiX commented on May 17, 2024

Hi, I have the same problem. My environnement is configured on different dockers' images:

  • Radarr
  • Sonarr
  • Jackett
  • Flaresolverr

Jackett is configured to use Flaresolverr and this container has environnement variable:
CAPTCHA_SOLVER=hcaptcha-solver (before that, Flaresolverr say that no auto captcha solverr is configured).
I also tried to run the following command in the container (Flaresolverr) via SSH: npm i hcaptcha-solver when I did it, the console say that something was installed.

Now I have the same error:

Jackett.Common.IndexerException: Exception (yggcookie): FlareSolverr was unable to process the request, please check FlareSolverr logs. Message: Token solver failed to return a token.
 ---> FlareSolverrSharp.Exceptions.FlareSolverrException: FlareSolverr was unable to process the request, please check FlareSolverr logs. Message: Token solver failed to return a token.
   at FlareSolverrSharp.Solvers.FlareSolverr.<>c__DisplayClass5_0.<<Solve>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at FlareSolverrSharp.Utilities.SemaphoreLocker.LockAsync[T](Func`1 worker)
   at FlareSolverrSharp.Solvers.FlareSolverr.Solve(HttpRequestMessage request)
   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 207
   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 496
   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 390
   --- 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 390
   at Jackett.Common.Indexers.BaseWebIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 659
   at Jackett.Server.Controllers.ResultsController.Torznab(TorznabRequest request) in /home/vsts/work/1/s/src/Jackett.Server/Controllers/ResultsController.cs:line 431

I don't know what to do...

from flaresolverr.

ilike2burnthing avatar ilike2burnthing commented on May 17, 2024

This solver works picking random images so it will fail in a lot of requests and it's hard to know if it's working or not. [...]
In a real use case with Sonarr/Radarr + Jackett it's really useful because those apps make a new request each 15 minutes. Eventually one of the requests is going to work and Jackett saves the cookie forever (until it stops working).

Run it connected to Sonarr and Radarr for a few hours to a day, then check back in Jackett. Hopefully by that stage it should be working.

from flaresolverr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.