3000: Invalid JSON Response
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 invalid JSON object.
- WooCommerce Order Status: Unknown
- If an order was created in WooCommerce, it is incomplete and may be displaying a status of "Pending Payment", "On Hold" or "Failed"
- 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
- Temporary site issue or outage
- Code errors in your WordPress Site's plugins or theme are causing an invalid response to QPilot's Create Order (POST) request
- Your connected WooCommerce Site may be returning a webpage or a different URL than what is expected in QPilot
Suggested Next Steps
-
Review the Order Creation Response for the Scheduled Order's Processing Cycle for more details.
- The Order Creation Response will show you what your WooCommerce Site returned after the Order was created via the WooCommerce REST API. This response may help you identify a specific error in your site's response.
-
Check your Autoship Log File in the WordPress Admin ( WP-Admin > Autoship Cloud > Settings >> Logs (tab) ).
- If your site responded to QPilot with an error, the error may be recorded in the Log File.
-
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.
- For more details on troubleshooting errors on your WordPress site, please see our detailed Troubleshooting Guide.
-
Before attempting to restart processing the Scheduled Order, you should test & verify your site's WooCommerce REST API and its ability to create a valid order in WooCommerce.
- You can test your site's WooCommerce REST API without the Autoship Cloud powered by QPilot plugin by attempting to create the same Order by making a basic request as documented by WooCommerce](https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API#making-a-basic-request).
After Resolving The Issue
-
Use the action to Restart Processing the Failed Scheduled Order.
-
If the Scheduled Order still fails to complete processing, the created Autoship Order in WooCommerce may be Invalid and you will need to delete the Invalid Order in WooCommerce.
-
To identify the Invalid Order in WooCommerce that should be deleted, you can check the following:
- The Processing Cycle for the Scheduled Order in QPilot will display the ID for the Order that was created.
- The WooCommerce > Orders view in your WordPress Admin will display the ID for the Scheduled Order that failed to process in the "Origin" column. Learn more about How Scheduled Orders are Linked To WooCommerce Orders here.
-
After the Invalid Order is deleted in WooCommerce, use the action to Restart Processing the Failed Scheduled Order.
- After the error causing the Invalid Order in WooCommerce is resolved and after the Invalid Order is deleted in WooCommerce, you will be able to restart processing the Failed Scheduled Order.
Updated about 2 years ago