• Resolved dropixuser

    (@dropixuser)


    Hello,
    When trying to retrieve a product from a user shop i get a 503 error.
    The call is perform from AWS Lambda Service using Woocommerce Python SDK (i also tried using requests library). But the same request actually works using Postman Application or on AWS Lambda for other woocommerce shops.

    Here is my API class instantiation:

    self.wcapi = API(
        url=self.wcapi_credential.get('url'),
        consumer_key=self.wcapi_credential.get('consumer_key'),
        consumer_secret=self.wcapi_credential.get('consumer_secret'),
        version="wc/v3",
        wp_api=True,
        query_string_auth=True
    )

    And the api call using sdk:
    woo_response = self.wcapi.get("products", params=params)
    I printed the response’s reason and text, that is what i get:

    reason : Service Temporarily Unavailable

    text (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="3">
        <script type="text/javascript">
            //<![CDATA[
            (function () {
                window._cf_chl_opt = {
                    cvId: "2",
                    cType: "non-interactive",
                    cNounce: "55667",
                    cRay: "67d139b19cf9331c",
                    cHash: "65db7d371917729",
                    cFPWv: "b",
                    cTTimeMs: "1000",
                    cRq: {
                        ru: "aHR0cHM6Ly9kaWNpZXRhaWxsZXVycy5mci93cC1qc29uL3djL3YzL3Byb2R1Y3RzP3Blcl9wYWdlPTEmY29uc3VtZXJfa2V5PWNrXzVkODZjZTY5MDBhYzYwZTVmOTJhNzBmZDczMDNjYThiY2JkYjQ3MjgmY29uc3VtZXJfc2VjcmV0PWNzXzJjOTEwODYxMzRlMGI1YzE4YTg4YWUxNTA3ZWIzYzZmMGY5YjY5OGY=",
                        ra: "V29vQ29tbWVyY2UgQVBJIENsaWVudC1QeXRob24vMi4xLjE=",
                        rm: "R0VU",
                        d: "Jd90WKP0kdiL5P6Hp1uQag1POEsSFXO+/akJ3cEwGx3R0ePrYD/na5y4a49P5VgsDUco3iYiumWTIVjGUNzRb/RLA4qat7bnHbEQtyrm1ssqEUlCJF8541akWtyO3ram/gDhSIVZghB3815kNm33J4I6z3EnBHxHnGODXkGhB/1BSfWTp59G3YFhehMAIGu/0Fzv7YNCgRqvRyv9NxV73qvPofbjz6dMwDvWmXKTQofdJNv2gg4OsftyK6BIrlcxM5AOGhqrvPgiH8XGKVz0ZAzzdz3L3iQ89rb7MSIm8gmRZ9gUhJIuXF0Hj6nEVQSr2cZ6Z51VRm46McPN1+PI2dcGKbsgJM0QFmeYYjnnBG1BQ39YTW3I8qx1E1xuE4G/62oFpZzV3OT8jKsi2C45DglE7IJM6pWdEGXbYE70dNG463IhLpohoLviKeSWjIeVgycvkjMTv36VqlsuUObXJbbw+qgzmkB/SG63XeB4TiLDKNmA/qT/oWtRhrDILTZpx9mN6Q4WhzK5qanhR8QaLr5VJW4A8MlJEtiYTkWc47EPufbZwrwtClDfMmC/rLHom9QFqXP9EzNu3fEjq1dTZ87hLP8Is69XOV6NQfLgflX1Gj9LQogR2MXU0RKisLfhvT71lW9lajblmCpywkO0jh+qhxV4eg/y0PWW5aCau9LEIso2OowAAip5e8KzVXaOzX54oa1OnNYOAVi0FzCAo+4yeHRdL1g6DMP0Kh0oFIAbV/h6jGOQGniTfP2OMIg0qMaSaL1NmXfXOANRlgqY3WaFNQo54m4kw6/vJhhgqlgs2E6pCymtMydzB0P4/LBJ",
                        t: "MTYyODY4MjQwNi42NjMwMDA=",
                        m: "sFKN84vTA2cxbSGtKMkUzNfGzz/KyxSoM79ooGVF/cw=",
                        i1: "FaMNtC96/fmZZNbMP/Q4wA==",
                        i2: "YiOZ3Lk4XGnQcvcfzzb/Hw==",
                        zh: "YTGaoFd0I9J5ZJGAlo6GsrftK+6kPCszHGbhO2eY6uA=",
                        uh: "lQf8fxBNf8ahI/tdhlDNFp3fdcY1kCKRK/INPi++dV4=",
                        hh: "X5HbVy7gJy6o5LQKVBxipZURCfo5lAmEzO3JDvnARno=",
                    }
                }
                window._cf_chl_enter = function () { window._cf_chl_opt.p = 1 };
            })();
    //]]>
        </script>
    </head>
    
    <body>
        <table width="100%" height="100%" cellpadding="20">
            <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:none">
                            <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>
                                dicietailleurs.fr.</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" id="cf-spinner-allow-5-secs">Please allow up to 5
                                seconds&hellip;</p>
                            <p data-translate="redirecting" id="cf-spinner-redirecting" style="display:none">
                                Redirecting&hellip;</p>
                        </div>
                        <form class="challenge-form" id="challenge-form"
                            action="/wp-json/wc/v3/products?per_page=1&consumer_key=ck_***********************&consumer_secret=cs_***********************&__cf_chl_jschl_tk__=pmd_e10f957d6ff940bb0f83dec74324a0c8cff60dd2-1628682406-0-gqNtZGzNAqKjcnBszQVi"
                            method="POST" enctype="application/x-www-form-urlencoded">
                            <input type="hidden" name="md"
                                value="e783a51683a020931bf8d65efad1a9d3b62a6f21-1628682406-0-AbeNLhkt_PfEUeOZuwbT3sCSz95wBe4Z1fi5_SZVggS-bVsQmlov3w2RXPn9DXmOrvupHg4Ycg0xoCLUB6KnIG70pR3UqmzA-mBiTLgrjkk5FSU7MFeYKd-xRTxVdJ-kC2CwRl1ZWXmmrI2lO43zyeBsQx1qHlwx8gB_mlmODnzc9NHa0MMQTdZNyTnNCtE4iX3hThKwuVcqV-B7lrDPLruSh25-nyN1OPNSrmKKjpcwSEYB91P6fADpwNrDgIc0KyAxqx6EmcK4mbQ-2XLFR_m1RLJ5AGC1vkpk2TD4OBhlHNbdogW0EV6JS6DUBRR-M7XK7j7dscydkGT4ww6jeG0PkMyExVE2Ci_WuFq456i-tolkE9ztqoV9xGiGO-2soABmw4zGyEOM_TYAaCsNAvDWEoi3Z3iH0505dF6dRHIk5xWRzcW48PQSPgC1DFHDnD2-E6DO4HB5sRNb4zhIEDVarlvP2cSK-wpJSfV44APo1WMLZDacE6fmJEZoupf3bCDC-QMU13quTlUjDKyS1OVXwVwvzVJvPVcnxA_fEiMsCpoLFpDJPla5JDRAetB0DmkhmUewBq_t68t9AExFI_1dpOo9N5zFshJbSO62oHQc" />
                            <input type="hidden" name="r"
                                value="7eda5c757f66695adb583b9716087b2c4f1b2a21-1628682406-0-ATQkwirek/+17BTfXvp5aoEODiHCgyYn27Vs6tMv/47jsd1Va3G2YYTwd/O61BM0vuy/fpHKPinKIqKrBpV4BCAF7NhfLzvtBd6Xu4XZVo7lFuV+ZKm4juRCDxZTR5xoTlyES9UDi5lYgxCPLYyKpE76Qe2ZHwZp4a4s8XTW+tK8T9SOMkq2DyNQv6kamzFHVA6YE1NCVBbbeflpXZEgvt1ZkbSWDqr1X5jnBP6a/OFLqSwnpMHH6e1o9cPxxqjZRMbSryTEva2CGm0Cc1SOMW45bCHsIIvo2m4lmHoIsRP+rxmzZ+1zYViF9s4up18cBveuW5tgczilDs6vcw2HN/nEJm5VzUDQivtuzf8j57KvS9Pcjw4okrHfOQDszHGQ32wXb/pF/4MAEOTpfVMuDQDEsAxxOjwq997DGFSXLLlMfvpvEgxbWBaxQM5d05rD7/bA425+tKHFkY3Zu/45Ggw1mnOA4ek032hU7+UGEUmZ+iQ+qlzt3ZO69hl5nQMcadgK44YQmgiGCWyEeD3FAUhumcjCo5GfJBik+KKiFUYfQNeh6MvFGzIqgGNlrIeyvKw6019UEn/gceHRIe5JfgAmpBTJI1+7CDCZ0ZgzA5eBU26U2jBxUUiIlrSq+EvEQNNcw1UwckQvMRwrRH5r3jTCR6hUNPHCPLKYmY/qE/5+7mZc2YJ00wuEKm0HC32fmIRA8ZkgJI/0bv0G7xZO6sFeeJa7P10lE1takUIhqAofZS72K/DIPRLzjRa8HSdqwWU2ADL4sQXRhpfn1iAr+Yd4pnDNwezdLm2OOF18wOI5V8ax9OutW66uYtLZSAAjTStwRYi7A59xdqKzMzT+6DqYboRgeqR0p+83HX3AQN0iI9L9KPxKPAm9ls/9cayZKSNih7aWQWozfn5AFGmhIUkToI+urG5s5I+u7Z6IDigjg0o/DsYCD+CO8lEM3tdWH1AolBpO8p+EUsek4/ZnIFg+xx4cyzNX2HpJUTxBmswBeT5lPKCMev1UYes2VUdl1epixwWDt8f4NWvtaUm1FyveGHK18FlG2zfp2NUE8sBxT1flKDh8kkJHoiQU1NFZnOx/NT3b/Ar9XM6KD1S3lCaiM5NvYs0xMZwYyhBYcKTC3cqtC6ZRM8HXm0d+6H2umgvRwmrtjT9Ad8SbNVsgCQVjFt3ZbjtyrPqFUnaim4l2vMjb7kMAJcQjVWP9btpyshnXkEfjAn0Egv/cgNy0KGEhKpNxIlziZ1bsni0Er+tX6UmXWzyXa4Ncns1te3qg6lTVEQrulrTl7gf6s4zUMZPsGMweiaeOEn+PlKf8v8jS" />
                            <input type="hidden" value="3d365a9ac057f883a14403e4d088d70b" id="jschl-vc" name="jschl_vc" />
                            <!-- <input type="hidden" value="" id="jschl-vc" name="jschl_vc"/> -->
                            <input type="hidden" name="pass" value="1628682407.663-r5piRcY0qh" />
                            <input type="hidden" id="jschl-answer" name="jschl_answer" />
                        </form>
                        <script type="text/javascript">
                            //<![CDATA[
                            (function () {
                                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/transparent.gif?ray=67d139b19cf9331c");
                                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?ray=67d139b19cf9331c";
                                document.getElementsByTagName('head')[0].appendChild(cpo);
                            }());
    //]]>
                        </script>
                        <div id="trk_jschal_nojs"
                            style="background-image:url('/cdn-cgi/images/trace/jschal/nojs/transparent.gif?ray=67d139b19cf9331c')">
                        </div>
                    </div>
                    <div style="position: absolute; top: -250px; left: -250px;"><a
                            href="https://kachtus.net/hundredfoldhunger.php?art=9496">table</a></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>67d139b19cf9331c</code></span>
                    </div>
                </td>
            </tr>
        </table>
    </body>
    
    </html>

    Should I specify the problematic store?

    • This topic was modified 3 years, 3 months ago by dropixuser.
    • This topic was modified 3 years, 3 months ago by dropixuser.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘API Call Error 503 Service Temporarily Unavailable’ is closed to new replies.