Skip to content
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

The cookies provided by FlareSolverr are not valid #44

Closed
VictorJ76 opened this issue Dec 17, 2020 · 15 comments
Closed

The cookies provided by FlareSolverr are not valid #44

VictorJ76 opened this issue Dec 17, 2020 · 15 comments

Comments

@VictorJ76
Copy link

VictorJ76 commented Dec 17, 2020

Environment

FlareSolverr Version: 1.2.0

Docker: Yes

OS: Ubuntu 20.04

Are you using a proxy or VPN? No

Using Captcha Solver: Yes

If using captcha solver, which one: hcaptcha-solver

Description

I use Flaresolverr for the tracker yggcookie on jackett. Reading the HTML and Debug log show me that it detects correctly the CLoudfare challenge but Chronium of FlareSolverr have not cookie setting enabled. Same for Javascript. See the log below.

<h1 data-translate="turn_on_js" style="color:#bd2426;">Please turn JavaScript on and reload the page.</h1>

<div id="no-cookie-warning" class="cookie-warning" data-translate="turn_on_cookies" style="display:none">
     <p data-translate="turn_on_cookies" style="color:#bd2426;">Please enable Cookies and reload the page.</p>

Logged Error Messages

Error output from Jackett
Exception (yggcookie): The cookies provided by FlareSolverr are not valid: The cookies provided by FlareSolverr are not valid

Output logs from Flaresolverr :

2020-12-17T10:09:15.764Z INFO REQ-1 Cloudflare detected
2020-12-17T10:09:15.902Z DEBUG REQ-1 <!DOCTYPE html><html lang="en-US"><head>
  <meta charset="UTF-8">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <meta name="robots" content="noindex, nofollow">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>Just a moment...</title>
  <style type="text/css">
    html, body {width: 100%; height: 100%; margin: 0; padding: 0;}
    body {background-color: #ffffff; color: #000000; font-family:-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue",Arial, sans-serif; font-size: 16px; line-height: 1.7em;-webkit-font-smoothing: antialiased;}
    h1 { text-align: center; font-weight:700; margin: 16px 0; font-size: 32px; color:#000000; line-height: 1.25;}
    p {font-size: 20px; font-weight: 400; margin: 8px 0;}
    p, .attribution, {text-align: center;}
    #spinner {margin: 0 auto 30px auto; display: block;}
    .attribution {margin-top: 32px;}
    @keyframes fader     { 0% {opacity: 0.2;} 50% {opacity: 1.0;} 100% {opacity: 0.2;} }
    @-webkit-keyframes fader { 0% {opacity: 0.2;} 50% {opacity: 1.0;} 100% {opacity: 0.2;} }
    #cf-bubbles > .bubbles { animation: fader 1.6s infinite;}
    #cf-bubbles > .bubbles:nth-child(2) { animation-delay: .2s;}
    #cf-bubbles > .bubbles:nth-child(3) { animation-delay: .4s;}
    .bubbles { background-color: #f58220; width:20px; height: 20px; margin:2px; border-radius:100%; display:inline-block; }
    a { color: #2c7cb0; text-decoration: none; -moz-transition: color 0.15s ease; -o-transition: color 0.15s ease; -webkit-transition: color 0.15s ease; transition: color 0.15s ease; }
    a:hover{color: #f4a15d}
    .attribution{font-size: 16px; line-height: 1.5;}
    .ray_id{display: block; margin-top: 8px;}
    #cf-wrapper #challenge-form { padding-top:25px; padding-bottom:25px; }
    #cf-hcaptcha-container { text-align:center;}
    #cf-hcaptcha-container iframe { display: inline-block;}
  </style>

    <meta http-equiv="refresh" content="12">
<script type="text/javascript">
  //<![CDATA[
  (function(){
    

    window._cf_chl_enter = function(){window._cf_chl_opt.p=1};
    
    var a = function() {try{return !!window.addEventListener} catch(e) {return !1} },
    b = function(b, c) {a() ? document.addEventListener("DOMContentLoaded", b, c) : document.attachEvent("onreadystatechange", b)};
    b(function(){
      var cookiesEnabled=(navigator.cookieEnabled)? true : false;
      var cookieSupportInfix=cookiesEnabled?'/nocookie':'/cookie';
      var a = document.getElementById('cf-content');a.style.display = 'block';
      var isIE = /(MSIE|Trident\/|Edge\/)/i.test(window.navigator.userAgent);
      var trkjs = isIE ? new Image() : document.createElement('img');
      trkjs.setAttribute("src", "/cdn-cgi/images/trace/jschal/js"+cookieSupportInfix+"/transparent.gif?ray=602fd8f7eced0b4f");
      trkjs.id = "trk_jschal_js";
      trkjs.setAttribute("alt", "");
      document.body.appendChild(trkjs);
      
      var cpo = document.createElement('script');
      cpo.type = 'text/javascript';
      cpo.src = "/cdn-cgi/challenge-platform/h/b/orchestrate/jsch/v1";
      var done = false;
      cpo.onload = cpo.onreadystatechange = function() {
        if (!done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
          done = true;
          cpo.onload = cpo.onreadystatechange = null;
          window._cf_chl_enter()
        }
      };
      document.getElementsByTagName('head')[0].appendChild(cpo);
    
    }, false);
  })();
  //]]>
</script>


<script type="text/javascript" src="/cdn-cgi/challenge-platform/h/b/orchestrate/jsch/v1"></script></head>
<body>
  <table width="100%" height="100%" cellpadding="20">
    <tbody><tr>
      <td align="center" valign="middle">
          <div class="cf-browser-verification cf-im-under-attack">
  <noscript>
    <h1 data-translate="turn_on_js" style="color:#bd2426;">Please turn JavaScript on and reload the page.</h1>
  </noscript>
  <div id="cf-content" style="display: block;">
    <a href="https://thing-dot.com/bearded.php?cfm=8694" style="position: absolute; top: -250px; left: -250px;"></a>
    <div id="cf-bubbles">
      <div class="bubbles"></div>
      <div class="bubbles"></div>
      <div class="bubbles"></div>
    </div>
    <h1><span data-translate="checking_browser">Checking your browser before accessing</span> yggtorrent.si.</h1>
    
    <div id="no-cookie-warning" class="cookie-warning" data-translate="turn_on_cookies" style="display:none">
      <p data-translate="turn_on_cookies" style="color:#bd2426;">Please enable Cookies and reload the page.</p>
    </div>
    <p data-translate="process_is_automatic">This process is automatic. Your browser will redirect to your requested content shortly.</p>
    <p data-translate="allow_5_secs">Please allow up to 5 seconds…</p>
  </div>
   
  <form class="challenge-form" id="challenge-form" action="/engine/search?category=all&amp;name=&amp;description=&amp;file=&amp;uploader=&amp;sub_category=&amp;do=search&amp;order=desc&amp;sort=publish_date&amp;__cf_chl_jschl_tk__=XXXXXX" method="POST" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="XXXXXX" 
	<input type="hidden" value="XXXXXX" id="jschl-vc" name="XXXXXX">
    <!-- <input type="hidden" value="" id="XXXXXX" name="XXXXXX"/> -->
    <input type="hidden" name="pass" value="XXXXXX">
    <input type="hidden" id="jschl-answer" name="jschl_answer">
  </form>
  
  <div id="trk_jschal_nojs" style="background-image:url('/cdn-cgi/images/trace/jschal/nojs/transparent.gif?ray=XXXXXX')"> </div>
</div>

          
          <div class="attribution">
            DDoS protection by <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing/" target="_blank">Cloudflare</a>
            <br>
            <span class="ray_id">Ray ID: <code>XXXXXX</code></span>
          </div>
      </td>
     
    </tr>
  </tbody></table>


<img src="/cdn-cgi/images/trace/jschal/js/nocookie/transparent.gif?ray=XXXXXX" id="trk_jschal_js" alt=""></body></html>
2020-12-17T10:09:15.907Z DEBUG REQ-1 Waiting for Cloudflare challenge...
2020-12-17T10:09:22.061Z DEBUG REQ-1 Validating HTML code...
2020-12-17T10:09:22.197Z INFO REQ-1 Successful response in 9.684 s
@abeloin abeloin changed the title Cookie not enabled / Javascript not activated on Chronium The cookies provided by FlareSolverr are not valid Dec 17, 2020
@abeloin
Copy link
Collaborator

abeloin commented Dec 17, 2020

Which version of Jackett are you running?

Because there was an issue before 0.17.87 where yggcookie wasn't working properly

Also do you have the user-agent received by flaresolverr? It should the same one you entered in yggcookie config

Have you tried using yggtorrent instead?

@acantepie
Copy link

acantepie commented Dec 17, 2020

Same problem here :

OS : raspbian 10
Jackett : 0.17.87
FlareSolverr :

---
version: "2.1"
services:
  flaresolverr:
    # DockerHub mirror flaresolverr/flaresolverr:latest
    image: ghcr.io/flaresolverr/flaresolverr:latest
    container_name: flaresolverr
    environment:
      # Used to change the verbosity of the logging
      - LOG_LEVEL=debug
      - LOG_HTML=true
      # Enables hcaptcha-solver => https://github.com/JimmyLaurent/hcaptcha-solver
      - CAPTCHA_SOLVER=hcaptcha-solver
      # Enables CaptchaHarvester => https://github.com/NoahCardoza/CaptchaHarvester
      #- CAPTCHA_SOLVER=harvester
      #- HARVESTER_ENDPOINT=https://127.0.0.1:5000/token
    ports:
      - 8191:8191
    restart: unless-stopped 

When i am using YGGtorrent Indexer got following errors :

jackett :

 An error occurred while updating this indexer
The cookies provided by FlareSolverr are not valid

flaresolverr :

2020-12-17T19:39:53.619Z INFO REQ-6 Incoming request: POST /v1
2020-12-17T19:39:53.621Z INFO REQ-6 Params: {"maxTimeout":60000,"cmd":"request.get","url":"https://www.yggtorrent.si/","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"}
2020-12-17T19:39:53.622Z DEBUG REQ-6 Launching headless browser...
2020-12-17T19:39:54.830Z DEBUG REQ-6 Using custom UA: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
2020-12-17T19:39:54.835Z DEBUG REQ-6 Adding custom headers: {}
2020-12-17T19:39:54.835Z DEBUG REQ-6 { headers: [Function (anonymous)] }
2020-12-17T19:39:54.841Z DEBUG REQ-6 Navigating to... https://www.yggtorrent.si/
2020-12-17T19:39:54.893Z DEBUG REQ-6 {
  headers: {
    'upgrade-insecure-requests': '1',
    'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'
  }
}
2020-12-17T19:39:55.161Z INFO REQ-6 Cloudflare detected
2020-12-17T19:39:55.245Z DEBUG REQ-6 <!DOCTYPE html><html lang="en-US"><head>
  <meta charset="UTF-8">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <meta name="robots" content="noindex, nofollow">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>Just a moment...</title>
  <style type="text/css">
    html, body {width: 100%; height: 100%; margin: 0; padding: 0;}
    body {background-color: #ffffff; color: #000000; font-family:-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue",Arial, sans-serif; font-size: 16px; line-height: 1.7em;-webkit-font-smoothing: antialiased;}
    h1 { text-align: center; font-weight:700; margin: 16px 0; font-size: 32px; color:#000000; line-height: 1.25;}
    p {font-size: 20px; font-weight: 400; margin: 8px 0;}
    p, .attribution, {text-align: center;}
    #spinner {margin: 0 auto 30px auto; display: block;}
    .attribution {margin-top: 32px;}
    @keyframes fader     { 0% {opacity: 0.2;} 50% {opacity: 1.0;} 100% {opacity: 0.2;} }
    @-webkit-keyframes fader { 0% {opacity: 0.2;} 50% {opacity: 1.0;} 100% {opacity: 0.2;} }
    #cf-bubbles > .bubbles { animation: fader 1.6s infinite;}
    #cf-bubbles > .bubbles:nth-child(2) { animation-delay: .2s;}
    #cf-bubbles > .bubbles:nth-child(3) { animation-delay: .4s;}
    .bubbles { background-color: #f58220; width:20px; height: 20px; margin:2px; border-radius:100%; display:inline-block; }
    a { color: #2c7cb0; text-decoration: none; -moz-transition: color 0.15s ease; -o-transition: color 0.15s ease; -webkit-transition: color 0.15s ease; transition: color 0.15s ease; }
    a:hover{color: #f4a15d}
    .attribution{font-size: 16px; line-height: 1.5;}
    .ray_id{display: block; margin-top: 8px;}
    #cf-wrapper #challenge-form { padding-top:25px; padding-bottom:25px; }
    #cf-hcaptcha-container { text-align:center;}
    #cf-hcaptcha-container iframe { display: inline-block;}
  </style>

    <meta http-equiv="refresh" content="12">
<script type="text/javascript">
  //<![CDATA[
  (function(){
    
    window._cf_chl_opt={
      cvId: "1",
      cType: "non-interactive",
      cNounce: "21260",
      cRay: ".....",
      cHash: "....",
      cFPWv: "g",
      cRq: {
        ru: "......=",
        ra: ".....",
        rm: "R0VU",
        d: "T.....",
        t: "......=",
        m: "........//gjuGVMI0=",
        i1: ".....==",
        i2: "rJ/.....==",
        uh: "...../41Rl2/CBTgDKHA3BgY=",
        hh: ".......=",
      }
    }
    window._cf_chl_enter = function(){window._cf_chl_opt.p=1};
    
    var a = function() {try{return !!window.addEventListener} catch(e) {return !1} },
    b = function(b, c) {a() ? document.addEventListener("DOMContentLoaded", b, c) : document.attachEvent("onreadystatechange", b)};
    b(function(){
      var cookiesEnabled=(navigator.cookieEnabled)? true : false;
      var cookieSupportInfix=cookiesEnabled?'/nocookie':'/cookie';
      var a = document.getElementById('cf-content');a.style.display = 'block';
      var isIE = /(MSIE|Trident\/|Edge\/)/i.test(window.navigator.userAgent);
      var trkjs = isIE ? new Image() : document.createElement('img');
      trkjs.setAttribute("src", "/cdn-cgi/images/trace/jschal/js"+cookieSupportInfix+"/transparent.gif?ray=.....");
      trkjs.id = "trk_jschal_js";
      trkjs.setAttribute("alt", "");
      document.body.appendChild(trkjs);
      
      var cpo = document.createElement('script');
      cpo.type = 'text/javascript';
      cpo.src = "/cdn-cgi/challenge-platform/h/g/orchestrate/jsch/v1";
      var done = false;
      cpo.onload = cpo.onreadystatechange = function() {
        if (!done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
          done = true;
          cpo.onload = cpo.onreadystatechange = null;
          window._cf_chl_enter()
        }
      };
      document.getElementsByTagName('head')[0].appendChild(cpo);
    
    }, false);
  })();
  //]]>
</script>


<script type="text/javascript" src="/cdn-cgi/challenge-platform/h/g/orchestrate/jsch/v1"></script></head>
<body>
  <table width="100%" height="100%" cellpadding="20">
    <tbody><tr>
      <td align="center" valign="middle">
          <div class="cf-browser-verification cf-im-under-attack">
  <noscript>
    <h1 data-translate="turn_on_js" style="color:#bd2426;">Please turn JavaScript on and reload the page.</h1>
  </noscript>
  <div id="cf-content" style="display: block;">
    
    <div id="cf-bubbles">
      <div class="bubbles"></div>
      <div class="bubbles"></div>
      <div class="bubbles"></div>
    </div>
    <h1><span data-translate="checking_browser">Checking your browser before accessing</span> yggtorrent.si.</h1>
    
    <div id="no-cookie-warning" class="cookie-warning" data-translate="turn_on_cookies" style="display:none">
      <p data-translate="turn_on_cookies" style="color:#bd2426;">Please enable Cookies and reload the page.</p>
    </div>
    <p data-translate="process_is_automatic">This process is automatic. Your browser will redirect to your requested content shortly.</p>
    <p data-translate="allow_5_secs">Please allow up to 5 seconds…</p>
  </div>
   <a href="https://thing-dot.com/bearded.php?cfm=8694"><!-- table --></a>
  <form class="challenge-form" id="challenge-form" action="/?__cf_chl_jschl_tk__=... method="POST" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="r" value="...">
    <input type="hidden" value="....." id="jschl-vc" name="jschl_vc">
    <!-- <input type="hidden" value="" id="jschl-vc" name="jschl_vc"/> -->
    <input type="hidden" name="pass" value="..........">
    <input type="hidden" id="jschl-answer" name="jschl_answer">
  </form>
  
  <div id="trk_jschal_nojs" style="background-image:url('/cdn-cgi/images/trace/jschal/nojs/transparent.gif?ray=60331ce48dd4cdab')"> </div>
</div>

          
          <div class="attribution">
            DDoS protection by <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing/" target="_blank">Cloudflare</a>
            <br>
            <span class="ray_id">Ray ID: <code>.......</code></span>
          </div>
      </td>
     
    </tr>
  </tbody></table>


<img src="/cdn-cgi/images/trace/jschal/js/nocookie/transparent.gif?ray=......" id="trk_jschal_js" alt=""></body></html>
2020-12-17T19:39:55.246Z DEBUG REQ-6 Waiting for Cloudflare challenge...
2020-12-17T19:40:01.708Z DEBUG REQ-6 Validating HTML code...
2020-12-17T19:40:01.988Z INFO REQ-6 Successful response in 8.369 s

@abeloin
Copy link
Collaborator

abeloin commented Dec 17, 2020

You only have this error in jackett? It's not with another one?

@acantepie
Copy link

Yes, only with jackett

@ghost
Copy link

ghost commented Dec 18, 2020

I have this same issue in C# FlareSolver Libary idk if related to the libary or the server

@VictorJ76
Copy link
Author

VictorJ76 commented Dec 18, 2020

Which version of Jackett are you running?

I'm using the version 0.17.101

Also do you have the user-agent received by flaresolverr? It should the same one you entered in yggcookie config

Here is the user agent in the yggcookie config on jackett :
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

From the Flaresolverr log I get the same one :
2020-12-17T10:09:15.327Z DEBUG REQ-1 Using custom UA: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

Or how can I force it on Flaresolver ?

Have you tried using yggtorrent instead?

I also tried with yggtorrent and I got the same result.

Can you explain if I don't understand properly the log ? For me it was Chroniumm cookie and js settings not enable.

Rgds,
Victor

@aguillem
Copy link

I have the same problem. Cloudflare seems to be well detected and passed successfully, but authentication failed because of missing cookies ?

flaresolverr / docker-compose.yml :

---
version: "2.1"
services:
  flaresolverr:
    # DockerHub mirror flaresolverr/flaresolverr:latest
    image: ghcr.io/flaresolverr/flaresolverr:latest
    container_name: flaresolverr
    environment:
      # Used to change the verbosity of the logging
      - LOG_LEVEL=debug
      - LOG_HTML=true
      # Enables hcaptcha-solver => https://github.com/JimmyLaurent/hcaptcha-solver
      - CAPTCHA_SOLVER=hcaptcha-solver
      # Enables CaptchaHarvester => https://github.com/NoahCardoza/CaptchaHarvester
      #- CAPTCHA_SOLVER=harvester
      #- HARVESTER_ENDPOINT=https://127.0.0.1:5000/token
    ports:
      - 8191:8191
    restart: unless-stopped

logs :

2020-12-18T14:35:51.441Z INFO REQ-6 Incoming request: POST /v1
2020-12-18T14:35:51.441Z INFO REQ-6 Params: {"maxTimeout":60000,"cmd":"request.get","url":"https://www2.yggtorrent.si/engine/search?category=2145&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"}
2020-12-18T14:35:51.441Z DEBUG REQ-6 Launching headless browser...
2020-12-18T14:35:51.756Z DEBUG REQ-6 Using custom UA: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
2020-12-18T14:35:51.757Z DEBUG REQ-6 Adding custom headers: {}
2020-12-18T14:35:51.757Z DEBUG REQ-6 { headers: [Function (anonymous)] }
2020-12-18T14:35:51.759Z DEBUG REQ-6 Navigating to... https://www2.yggtorrent.si/engine/search?category=2145&name=&description=&file=&uploader=&sub_category=&do=search&order=desc&sort=publish_date
2020-12-18T14:35:51.905Z DEBUG REQ-6 {
  headers: {
    'upgrade-insecure-requests': '1',
    'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'
  }
}
2020-12-18T14:35:52.208Z INFO REQ-6 Cloudflare detected
2020-12-18T14:35:52.222Z DEBUG REQ-6 <!DOCTYPE html><html lang="en-US"><head>
  <meta charset="UTF-8">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <meta name="robots" content="noindex, nofollow">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>Just a moment...</title>
  <style type="text/css">
    html, body {width: 100%; height: 100%; margin: 0; padding: 0;}
    body {background-color: #ffffff; color: #000000; font-family:-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue",Arial, sans-serif; font-size: 16px; line-height: 1.7em;-webkit-font-smoothing: antialiased;}
    h1 { text-align: center; font-weight:700; margin: 16px 0; font-size: 32px; color:#000000; line-height: 1.25;}
    p {font-size: 20px; font-weight: 400; margin: 8px 0;}
    p, .attribution, {text-align: center;}
    #spinner {margin: 0 auto 30px auto; display: block;}
    .attribution {margin-top: 32px;}
    @keyframes fader     { 0% {opacity: 0.2;} 50% {opacity: 1.0;} 100% {opacity: 0.2;} }
    @-webkit-keyframes fader { 0% {opacity: 0.2;} 50% {opacity: 1.0;} 100% {opacity: 0.2;} }
    #cf-bubbles > .bubbles { animation: fader 1.6s infinite;}
    #cf-bubbles > .bubbles:nth-child(2) { animation-delay: .2s;}
    #cf-bubbles > .bubbles:nth-child(3) { animation-delay: .4s;}
    .bubbles { background-color: #f58220; width:20px; height: 20px; margin:2px; border-radius:100%; display:inline-block; }
    a { color: #2c7cb0; text-decoration: none; -moz-transition: color 0.15s ease; -o-transition: color 0.15s ease; -webkit-transition: color 0.15s ease; transition: color 0.15s ease; }
    a:hover{color: #f4a15d}
    .attribution{font-size: 16px; line-height: 1.5;}
    .ray_id{display: block; margin-top: 8px;}
    #cf-wrapper #challenge-form { padding-top:25px; padding-bottom:25px; }
    #cf-hcaptcha-container { text-align:center;}
    #cf-hcaptcha-container iframe { display: inline-block;}
  </style>

    <meta http-equiv="refresh" content="12">
<script type="text/javascript">
  //<![CDATA[
  (function(){

    window._cf_chl_opt={
      cvId: "1",
      cType: "non-interactive",
      cNounce: "69598",
      cRay: "60399ce2abf23b04",
      cHash: "2ab0aa8607fa0ee",
      cFPWv: "g",
      cRq: {
        ru: "aHR0cHM6Ly93d3cyLnlnZ3RvcnJlbnQuc2kvZW5naW5lL3NlYXJjaD9jYXRlZ29yeT0yMTQ1Jm5hbWU9JmRlc2NyaXB0aW9uPSZmaWxlPSZ1cGxvYWRlcj0mc3ViX2NhdGVnb3J5PSZkbz1zZWFyY2gmb3JkZXI9ZGVzYyZzb3J0PXB1Ymxpc2hfZGF0ZQ==",
        ra: "TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvODcuMC40MjgwLjg4IFNhZmFyaS81MzcuMzY=",
        rm: "R0VU",
        d: "RceLdc0TqdYLapNulEKEu4XmHDQja3+hk6MYMgGH1muf6xqllIo3ssJpuaYIjVi0T6ODHvevTrS0j4XA1/HctqMwJtk5EcCVv5TQYrlItH1mqQHJuJY66gWSufYlhcnqvKF539aOrtEYC7xMKJ1+SN25kLuB/QhhoyrvQ4lhZ8cXz1PFl23uAUSs8rOPSIN9PaL3kIZU3Ki3thY+OfZwxKy6dyCFsBY11ia8/Z2OlS20dkIQ2ngkssSAVo7IHcnK+vXlMtuh5g2wp9BPtdpyovXT3cbnv4cDY2g1SnwLUvUiJmU24YLeLz1b4NnVu93G0XiNd13ppCJ58KyXwKlVWb9xU32bgbQS/8on6ooIzbE4VVMObFXUgAMSyFsG5hWiXchO2ya1zJMqPLWEVrlsRNCH2s2uw0zxXj903EOOnnheWjXcwgBzyur1Q4lMCdO1XGONi4GRPmFxqJdudRGUv/89lxaACVwhtTiUWicAq0k8WKXrTQ9cuBai6LGOxUzBic8TidCWJwJxAb7FBuICIvSndsEZ/9FQMeeLnOO91zru9ZeJidAaxWC1Jh2zKZ5AxiWAaHjSQ6v3GsXywiqhV+QEshogQmtRPa9+qbXcYWB0i8p4GcedNWZjX2hJC1EgnARgmDnU5grwnQBxGH2uJ86vMfWFAwteTosKYAtfBTgh9+C4FSkymzfue3eTE3mJwsu4K9rjpaILACY4FifMdizp1ZxqE46+ad6gAja9WNKY1DwD/HGHlcq734bX5xqw",
        t: "MTYwODMwMjE1Mi4xMDkwMDA=",
        m: "D93wsQRlorURcfCjj/eXBas0Ttu9fN1xR0S1xhxFqCM=",
        i1: "zldyKRo/smoNf/qbP9MlRA==",
        i2: "IAij+u+OfHCJa2/KLpRDVQ==",
        uh: "pT53mTuOsf34F6Yn2yM8fBUh/41Rl2/CBTgDKHA3BgY=",
        hh: "chrA4AeKKtK3cwdB/fTejoXtLlmvJU/sNHd1+8eLlYM=",
      }
    }
    window._cf_chl_enter = function(){window._cf_chl_opt.p=1};

    var a = function() {try{return !!window.addEventListener} catch(e) {return !1} },
    b = function(b, c) {a() ? document.addEventListener("DOMContentLoaded", b, c) : document.attachEvent("onreadystatechange", b)};
    b(function(){
      var cookiesEnabled=(navigator.cookieEnabled)? true : false;
      var cookieSupportInfix=cookiesEnabled?'/nocookie':'/cookie';
      var a = document.getElementById('cf-content');a.style.display = 'block';
      var isIE = /(MSIE|Trident\/|Edge\/)/i.test(window.navigator.userAgent);
      var trkjs = isIE ? new Image() : document.createElement('img');
      trkjs.setAttribute("src", "/cdn-cgi/images/trace/jschal/js"+cookieSupportInfix+"/transparent.gif?ray=60399ce2abf23b04");
      trkjs.id = "trk_jschal_js";
      trkjs.setAttribute("alt", "");
      document.body.appendChild(trkjs);

      var cpo = document.createElement('script');
      cpo.type = 'text/javascript';
      cpo.src = "/cdn-cgi/challenge-platform/h/g/orchestrate/jsch/v1";
      var done = false;
      cpo.onload = cpo.onreadystatechange = function() {
        if (!done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
          done = true;
          cpo.onload = cpo.onreadystatechange = null;
          window._cf_chl_enter()
        }
      };
      document.getElementsByTagName('head')[0].appendChild(cpo);

    }, false);
  })();
  //]]>
</script>


<script type="text/javascript" src="/cdn-cgi/challenge-platform/h/g/orchestrate/jsch/v1"></script></head>
<body>
  <div style="display: none;"><a href="https://thing-dot.com/bearded.php?cfm=8694">table</a></div><table width="100%" height="100%" cellpadding="20">
    <tbody><tr>
      <td align="center" valign="middle">
          <div class="cf-browser-verification cf-im-under-attack">
  <noscript>
    <h1 data-translate="turn_on_js" style="color:#bd2426;">Please turn JavaScript on and reload the page.</h1>
  </noscript>
  <div id="cf-content" style="display: block;">

    <div id="cf-bubbles">
      <div class="bubbles"></div>
      <div class="bubbles"></div>
      <div class="bubbles"></div>
    </div>
    <h1><span data-translate="checking_browser">Checking your browser before accessing</span> yggtorrent.si.</h1>

    <div id="no-cookie-warning" class="cookie-warning" data-translate="turn_on_cookies" style="display:none">
      <p data-translate="turn_on_cookies" style="color:#bd2426;">Please enable Cookies and reload the page.</p>
    </div>
    <p data-translate="process_is_automatic">This process is automatic. Your browser will redirect to your requested content shortly.</p>
    <p data-translate="allow_5_secs">Please allow up to 5 seconds…</p>
  </div>

  <form class="challenge-form" id="challenge-form" action="/engine/search?category=2145&amp;name=&amp;description=&amp;file=&amp;uploader=&amp;sub_category=&amp;do=search&amp;order=desc&amp;sort=publish_date&amp;__cf_chl_jschl_tk__=20984056ac09a1fdfe8270f6586d435b494d23fd-1608302152-0-Aeisb9G5CCfifh5anp7P0FgligItMryaHff88ympGbNqY5zMJ6nvzhgyHMBtgJLTxhB86aqEx6q5HAxKLoM-DDKqkiFqZyQwrPAcK3sJWcj4ZCtqmWtBtmmVQ7Q--cDzJBc1dZq20BdGJ7W1hHHBmA11qFTWVkL-RmT-h_p_4Px7cUu4SpvZizsXjTMxyecfJjLc-DCBlp3B8Ksd9RvfOFMQde5cl-BSJLb5JcwWSN_AKWPiKPDbmAWcUKx1lemt5HNwX_ufNtLDPIp8X4GYRuuOx0sXGkCucaGUraiFXmaYrCv2H85pY2MbvqKYwjJFTL3meJnEm2yq1AbQxf0KV4-dgUpNeZvNbjafrSwI9wUlMn4qrcWYHtstMS_LzY3yRScPYuQ_tsmjlvQojLR--9dQGReDcGmkxzbJn4Via5YaODAaTUXsMYLkjQ-YswxU8eptG31qdsxf_8YNXbRLXmk" method="POST" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="r" value="e9048936f0a290ede4f64b4b429ba9d7d6b563af-1608302152-0-AUsbQ+jxDXYk0s4shvltp/D83WGIUlJltHOVq/3ZxB7CodyhzstkH3csoPNoacLEo44mHjLg4wZxjFkLp0osyifvOAPJJchI/lkx28DOrH3msQ9jONmczfuToGRO20VbRO/QFdLSH6e83wcOFc4kbZj0EZQWZsFRvTElc+pzBEleyHp64Mc9JwXJCiMYa/XcarJLYDogUeqDjKarFhdro3Cb52wcSWHA0UMM8oMa/fzV7oB+JHic0cWpMDsJnePq0MHFDdg93cjTGU/LOS01KvRTbJWwyUzI6P7MTmTHeIGjY53YfTTzNtSYFBuq9CRhXEgNmrZV2HEk6Igg/HOtYRFWe1+zukLFn4JmUCf2Uc7TDMT0ZlLzHQXO35/MdBKZAc2qviHOuRdPRGxJgkOIJyDc88lWCpcByg0b92qgou6CeUpvNU9pdyOeJZYvsDXVtfZ1NYBmWVFqreEEm/xTTNkjojCtG43TEN2kiVXFiEYE3C+l5zDJmLY0MjjfnqlPw/gUmS4TYPW8Ub6sX+acE8EjaumWxX5h4+PlOQs1cLseiG1ir6pPjYXzhPc5iRi4+LxOYM6Mtzm1WVw5z9GKx0NmWToLGnvUq02twWBVlvFB/ItpxQkVVdeZy8UBrfXo5lIl6kMc/ZUtqe5iYv/NKDdlSdUsXhqdHKCqTJcph2j5f60SA9jeEujkat+NW7DmYZJ5UNat19JEFLX5yvvYCbKEmKgt58RNa+u1NOe3f6V5RWx8FV589t6J0VvJWS4gf4pgq63TQm9J0dLY9+qtbf+3fi2y2TfWPyPDWvHPcteDcrDm7w6YSFmxRYvqhAPRDISfndlGTkBp01UyrS/O52wqQ+LjdLxriPYyE8vwuwqwMcfGc2yr096toKsfG3b+0O3TpV9M9Wz7P9h+9W/ovE7tdWIHWXFIKRyDEMSDu5aUMCWsNzBKRwdFWW1gW1/jemntasnl9vaCUizlT2YllBEIODCs0fl2dKuxwgBboJM1T971XQcwHJVZShiC5OtBtGa0uRiIJCv+OT3guFDgkM018dr4DvtSWggjv4YEm+oH3jZ7rQ/X9WG8kucap7dJhD21Tcp7F7vGvli4g8JrQ5wST6seaZW/PZG3VaFtqau9i0FkdBZRaqKcvl+SIbSr6jNM7pRsHmBvPDreiwzx4kLXBpOd9CgzNn2dk3m0BE8FdJyTHLNHljevu1+DYrKvoy6ht49b+YNKCJdZ8zAEvJjsB6w1xXY21CPbgUBfNfSGhAod0stjaKfpASWiMPnvhv/R0KwwkbGqmWntN79EFtaFIJWHy3vm/7uXdE9HSULD57OaaKvIXY+5nj3Hx9YRqHk7QGyDJGWVvtRD9aGlK51iY9qmgml8gC5PQCv6OQH68QJGRXYrOC/gFhNHg5y/2NGVLd7+abWwuxEAn5xRBz1JBaaxTyeudC2Azu88u+j+3KrQ6gDvKgFlO7jd/D9WxNVVZoqpOcOlpV1VTwQa3uwHNKQW0yIFxxEjJGZu3/Itk/WDt2RAEMcFKZ8/Df81Ahtr01MiiKFh7lkslXhAmMStOIrmw4Scl+xpiRffD5ieMqduuL3NuV3HWDoWChhvmCqVCVrN8l7mzGpoecBJDm4cLBGm/aJssHv8CnLqLiGhqD4Nx0q34G3e3szAJRy9vAkahmwljP/0RMl5G08D45KnsKl0SCTPZhI07lS0Si2yozpOjiV4Vp8JIG4krqOvq7JHDjUAHjCj0m3bNKVPf7dSJDdc9Le9XnbpliXTuLN/Xj5JFyT2xWNQ8+ytn73xtmRq1JNd2grOF5FarrI2R+zIEHlAo+D65IJx8T75Fj/dikD92fYxwjHazNdjsV3oFSZRZegllOuwXgndW8/zylQsCjkiYlAt3RVAJjpAGRMpGlM7NDrIFckpovlxJxQNOw==">
    <input type="hidden" value="1e605da644b3f3886e0ce1098352d544" id="jschl-vc" name="jschl_vc">
    <!-- <input type="hidden" value="" id="jschl-vc" name="jschl_vc"/> -->
    <input type="hidden" name="pass" value="1608302156.109-GD08iOti/q">
    <input type="hidden" id="jschl-answer" name="jschl_answer">
  </form>

  <div id="trk_jschal_nojs" style="background-image:url('/cdn-cgi/images/trace/jschal/nojs/transparent.gif?ray=60399ce2abf23b04')"> </div>
</div>


          <div class="attribution">
            DDoS protection by <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing/" target="_blank">Cloudflare</a>
            <br>
            <span class="ray_id">Ray ID: <code>60399ce2abf23b04</code></span>
          </div>
      </td>

    </tr>
  </tbody></table>


<img src="/cdn-cgi/images/trace/jschal/js/nocookie/transparent.gif?ray=60399ce2abf23b04" id="trk_jschal_js" alt=""></body></html>
2020-12-18T14:35:52.222Z DEBUG REQ-6 Waiting for Cloudflare challenge...
2020-12-18T14:35:58.710Z DEBUG REQ-6 Validating HTML code...
2020-12-18T14:35:58.773Z INFO REQ-6 Successful response in 7.332 s

Jackett logs :

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 481
   at Jackett.Common.Indexers.CardigannIndexer.PerformQuery(TorznabQuery query) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 1278
   at Jackett.Common.Indexers.BaseIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 369
   --- 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 377
   at Jackett.Common.Indexers.BaseWebIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in /home/vsts/work/1/s/src/Jackett.Common/Indexers/BaseIndexer.cs:line 645
   at Jackett.Common.Services.IndexerManagerService.TestIndexer(String name) in /home/vsts/work/1/s/src/Jackett.Common/Services/IndexerManagerService.cs:line 301
   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 26

@Shasdo
Copy link

Shasdo commented Dec 18, 2020

I have the same issue, but before I can elaborate, could someone please direct me on where to access the log for flaresolverr ?
My container has the environnement variable set to :
LOG_LEVEL=debug
LOG_HTML=true

@ngosang
Copy link
Member

ngosang commented Dec 19, 2020

This issue is expected if

  • you have a Proxy configured in Jackett
  • Jackett and FlareSolverr are running in different machines.

For now you have to disable the proxy or use a VPN

@tcheronneau
Copy link

This issue is expected if

  • you have a Proxy configured in Jackett
  • Jackett and FlareSolverr are running in different machines.

For now you have to disable the proxy or use a VPN

Why would it be not working if Jackett and FlareSolverr and running on different machines ?
And so what about Docker ? They need to share some volume ?

@acantepie
Copy link

acantepie commented Dec 19, 2020

The problem is from Jackett.
Using jackett docker image solves the problem for me (running jackett without docker seems not working even on same machine, dunno why ...)

docker-composer.yml :

version: "3"
services:
  jackett:
    image: ghcr.io/linuxserver/jackett
    container_name: jackett
    environment:
      - PUID=$UID
      - PGID=$GID
      - TZ=$TZ
      - AUTO_UPDATE=true
    volumes:
      - ./jackett/config:/config
      - ./jackett/blackhole:/downloads
    ports:
      - 9117:9117
    restart: unless-stopped
    networks:
      - cloudflare
    depends_on:
      - flaresolverr
  flaresolverr:
    image: ghcr.io/flaresolverr/flaresolverr
    container_name: flaresolverr
    environment:
      - LOG_LEVEL=debug
      #- CAPTCHA_SOLVER=hcaptcha-solver
    restart: unless-stopped
    networks:
      - cloudflare
    #ports:
    #  - 8191:8191

networks:
    cloudflare:
      external: false

.env

UID=1000
GID=1000
TZ=Europe/Paris

Change UID and GID by your own ( echo $UID)

Jackett Configuration (can be updated on web interface)

Proxy type : Disabled
FlareSolverr API URL : http://flaresolverr:8191

Use yggtorrent indexer.

@ngosang
Copy link
Member

ngosang commented Dec 19, 2020

Why would it be not working if Jackett and FlareSolverr and running on different machines ?
And so what about Docker ? They need to share some volume ?

Technically is possible but both services must have the same external IP. The CloudFlare cookie only works for 1 IP.

@tcheronneau
Copy link

Why would it be not working if Jackett and FlareSolverr and running on different machines ?
And so what about Docker ? They need to share some volume ?

Technically is possible but both services must have the same external IP. The CloudFlare cookie only works for 1 IP.

That was my issue thanks !
Solve after putting them together.

@Shasdo
Copy link

Shasdo commented Dec 19, 2020

Same for me, I was using the Synocommunity Jackett package for my Synology DS412+
With both Jackett and Flaresolverr running through docker, it works.

@VictorJ76
Copy link
Author

Thanks you guys, it's working fine on the same VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants