API Calls suddenly broke

Highlighted
New Member
3 0 0

I've been successfully working with the Node.js library for a few days, then today all requests seem to hang with no output from any of my then(...) or catch(...) blocks. Such as

shopApi.theme
  .list({ limit: 5 })
  .then((theme) => console.log(theme))
  .catch((err) => console.error(err));

I didn't get any timeouts, yet the client would hang on this request, waiting for the promise to resolve. Next I tried using Postman, and found that I get an HTML block with "Continue" hyperlinked to a login page.

 

Reading past users, I deleted all my cookies from Postman with no luck. Next, I used a CURL command, and get the same response.

curl --location --request GET 'https://{store}.myshopify.com/admin/api/2020-10-01/themes/' \
> --header 'X-Shopify-Access-Token: 10802362a17c7a72b77f920c49a3ccaf' \
> --header 'Content-Type: application/json'

response (with URL removed)

<html>
  <body>
    <noscript>
      <a href="https://app.shopify.com/services/login/identity?...">Continue</a>
    </noscript>

    <script type="text/javascript">
      window.location = "...";
    </script>
  </body>
</html>
0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 166

Hey @VaderDidNoWrong,

 

Looking at the CURL command, it appears the version has a typo (2020-10-01), does switching to 2020-01 resolve the issue?

0 Likes