mikekonan / exchange-proxy

exchange-proxy
GNU General Public License v3.0
110 stars 31 forks source link

Cloudflare is blocking my IP #14

Closed Smidelis closed 2 years ago

Smidelis commented 2 years ago

Hi, i've 8 freqtrade bots running with your proxy. Since i have started the 8th bot i am sometimes getting banned by Cloudflare.

2021-11-21 14:15:16,630 - freqtrade.worker - INFO - Bot heartbeat. PID=1, version='docker-06c81b52', state='RUNNING'
2021-11-21 14:15:16,899 - freqtrade.exchange.common - WARNING - fetch_ticker() returned exception: "kucoin GET http://freqtrade-kcproxy:8080/kucoin/api/v1/market/stats?symbol=YGG-USDT 429 Too Many Requests <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Access denied | openapi-v2.kucoin.com used Cloudflare to restrict access</title>
<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" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/main.css" type="text/css" media="screen,projection" />

<script defer src="https://api.radar.cloudflare.com/beacon.js"></script>
<script async src='/cdn-cgi/bm/cv/669835187/api.js'></script></head>
<body>
  <div id="cf-wrapper">
    <div class="cf-alert cf-alert-error cf-cookie-error hidden" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
    <div id="cf-error-details" class="p-0">
      <header class="mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-15 antialiased">
         <h1 class="inline-block md:block mr-2 md:mb-2 font-light text-60 md:text-3xl text-black-dark leading-tight">
           <span data-translate="error">Error</span>
           <span>1015</span>
         </h1>
         <span class="inline-block md:block heading-ray-id font-mono text-15 lg:text-sm lg:leading-relaxed">Ray ID: 6b1a877a7f6d4a7f &bull;</span>
         <span class="inline-block md:block heading-ray-id font-mono text-15 lg:text-sm lg:leading-relaxed">2021-11-21 14:15:16 UTC</span>
        <h2 class="text-gray-600 leading-1.3 text-3xl lg:text-2xl font-light">You are being rate limited</h2>
      </header>

      <section class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
          <div id="what-happened-section" class="w-1/2 md:w-full">
            <h2 class="text-3xl leading-tight font-normal mb-4 text-black-dark antialiased" data-translate="what_happened">What happened?</h2>
            <p>The owner of this website (openapi-v2.kucoin.com) has banned you temporarily from accessing this website.</p>

          </div>

      </section>

      <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
  <p class="text-13">
    <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">6b1a877a7f6d4a7f</strong></span>
    <span class="cf-footer-separator sm:hidden">&bull;</span>
    <span class="cf-footer-item sm:block sm:mb-1"><span>Your IP</span>: xxx.xxx.xxx.xxx</span>
    <span class="cf-footer-separator sm:hidden">&bull;</span>
    <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing" id="brand_link" target="_blank">Cloudflare</a></span>

  </p>
</div><!-- /.error-footer -->

    </div><!-- /#cf-error-details -->
  </div><!-- /#cf-wrapper -->

  <script type="text/javascript">
  window._cf_translation = {};

</script>

<script type="text/javascript">(function(){window['__CF$cv$params']={r:'6b1a877a7f6d4a7f',m:'yhpFRiUNVxZg9XUJG7eSaoZEpHv9lngE2gcu8HTWDKY-1637504116-0-AZza/PnOdV0QXyEKo09Bt91Mbq7/ohfDsYlLJ3vOaS6KuVycjDTwbeZQXWsH10iqw/FBHkl1utRM5bqX65tOlk3X4RN7JV/F24qzcieCVnNGYxVWdrF3+BmW8ZO4/nD1rH0bnect9RBujT81FEPzWBd2p49UmBHZKgWCQT4WrSzx',s:[0xea13506f1c,0x067e0c19e7],}})();</script></body>
</html>"
2021-11-21 14:15:16,900 - freqtrade.exchange.common - WARNING - retrying fetch_ticker() still for 4 times
2021-11-21 14:15:16,900 - freqtrade.exchange.common - INFO - Applying DDosProtection backoff delay: 1
2021-11-21 14:16:16,662 - freqtrade.worker - INFO - Bot heartbeat. PID=1, version='docker-06c81b52', state='RUNNING'

Is this supposed to be or am it at the limit?

Smidelis commented 2 years ago

Sorry, had wrong settings in my config.json. Changed my config.json and will keep monitoring it. Issue closed.