3000: HTTP 401 Error - WooCommerce Order Creation Failure

What This Means

This error means that your connected WooCommerce Site responded to QPilot's (POST) request to create a new order in WooCommerce with an HTTP 401 error, also known as an "unauthorized error".

The HTTP error 401 indicates that access to your site is unauthorized. This error means that the WordPress Admin user who registered and connected WooCommerce to QPilot has been changed or deleted. This is usually fixed by simply updating the WordPress Administrator and reconnecting your site's WooCommerce API to QPilot.

  • WooCommerce Order Status: None
    • A "401" error will prohibit the creation of a new order, so no order was created in WooCommerce
  • Payment Processing: No payment was processed. A valid order must first be created successfully before a payment request is made for the created order.
  • Scheduled Order Status: Failed
    • This is a Processing error so the Scheduled Order status is set to "Failed"

Common Causes For This Error

  • Changes to the WordPress Admin User
  • Permissions or Restrictions added to your WordPress Site
  • Permissions or Restrictions changed on your server (check with your hosting provider)

Suggested Next Steps

  1. Please review our help doc Error 401: Sorry you are not allowed to create resources for the most common steps to resolve a 401 error.

  2. To retest the connection with your site's WooCommerce REST API, please use the Autoship Cloud powered by QPilot plugin's API Healthiness check ( WP-Admin > Autoship Cloud > Settings >> Test Integration (button) ).

  3. If the connection is still unsuccessful, your WordPress site may be restricting permissions in a way that causes the 401 error.

    • If the error is caused by your site, you will want to review your WordPress Site's error log (also known as the "debug log") to review the specific error(s).
    • If your site is experiencing an error, and your site has the error log enabled, then you will be able to see a more detailed record of the error on your site so that you can troubleshoot and resolve the error.
    • Pro Tip! Searching for "401" or "error" in your error log can usually point out the errors preceding the 401 error.
    • For more details on troubleshooting errors on your WordPress site, please see our detailed Troubleshooting Guide.
  4. If you are unable to track down the error on your WordPress Site, you should contact your WordPress Hosting Provider and ask them to review the Server Error Log for a recent 401 error when making a POST request to create a new order via the WooCommerce REST API.

  5. Before attempting to continue processing the Scheduled Order, you should test & verify your site's WooCommerce REST API and its ability to create a valid order in WooCommerce.

After Resolving The Issue

Use the action to Continue Processing the Failed Scheduled Order.