XiaoFaye / WooCommerce.NET

A .NET Wrapper for WooCommerce/WordPress REST API
MIT License
396 stars 219 forks source link

Issue with WooCommerceNET Library in C# - API Request Error #764

Open pipoken opened 12 months ago

pipoken commented 12 months ago

Wordpress version: 6.3 WooCommerce version: 8.3.1 WooCommerce.Net version: 0.8.6

I'm encountering an issue with the "WooCommerceNET" library in C# while interacting with the WooCommerce API. I've successfully set up the credentials, but when making a request (e.g., products.GetAll()), I receive the following exception:

<!DOCTYPE html>
<html lang="en-US">
   <head>
      <title>Just a moment...</title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=Edge">
      <meta name="robots" content="noindex,nofollow">
      <meta name="viewport" content="width=device-width,initial-scale=1">
      <link href="/cdn-cgi/styles/challenges.css" rel="stylesheet">
      <meta http-equiv="refresh" content="375">
   </head>
   <body class="no-js">
      <div class="main-wrapper" role="main">
         <div class="main-content">
            <noscript>
               <div id="challenge-error-title">
                  <div class="h2">
                     <span class="icon-wrapper">
                        <div class="heading-icon warning-icon"></div>
                     </span>
                     <span id="challenge-error-text">Enable JavaScript and cookies to continue</span>
                  </div>
               </div>
            </noscript>
         </div>
      </div>
      <script>...</script>
   </body>
</html>

This excepcion message y raised when executing this line: List list = await wc.Product.GetAll(new Dictionary<string, string>() { { "page", $"{page}" } });

error woocommerceNet

Any idea?

XiaoFaye commented 10 months ago

Some of the plugins have caused this issue, you might need to disable one by one to find out.