Title: Loading Failed
Last modified: January 25, 2023

---

# Loading Failed

 *  Resolved [smgdarien](https://wordpress.org/support/users/smgdarien/)
 * (@smgdarien)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/loading-failed-13/)
 * Hello! Getting a Loading Failed error when Varnish Cache is enabled, are you 
   using any ajax requests specifically that I can try whitelisting to fix the issue?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/loading-failed-13/#post-16421733)
 * [@smgdarien](https://wordpress.org/support/users/smgdarien/) ,
   Would like to 
   update you that Stock Manager for WooCommerce plugin uses WooCommerce REST API
   in AJAX calls (like `wc/v3/products` ) for fetching the products.Please do let
   us know if this helps resolve the issue faced by you.
 *  Thread Starter [smgdarien](https://wordpress.org/support/users/smgdarien/)
 * (@smgdarien)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/loading-failed-13/#post-16450310)
 * I have excluded this URL from caching and any under /wc-api/ but still no luck,
   can you tell me the specific urls being used?
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/loading-failed-13/#post-16455670)
 * [@smgdarien](https://wordpress.org/support/users/smgdarien/) ,
 * Could you please let us know whether you are using any varnish cache plugin, 
   if yes then please share the screenshot of the settings to whitelist AJAX calls
   so that we can help you in a better way? Also, could you please check and confirm
   whether AJAX calls from WooCommerce are working properly or not?
 * Also, alternatively, you can try the fix given [here](https://github.com/nicolargo/varnish-nginx-wordpress/issues/13)
   for whitelisting AJAX requests, and do let us know if this helps.
 *  Thread Starter [smgdarien](https://wordpress.org/support/users/smgdarien/)
 * (@smgdarien)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/loading-failed-13/#post-16486907)
 * Yup I’m using this plugin [https://wordpress.org/plugins/varnish-http-purge/](https://wordpress.org/plugins/varnish-http-purge/)
 * I have these whitelisted
 * ^/my-account
   /cart/checkout^/wp-admin^/wp-admin/admin-ajax.php/wp-admin/admin.
   php?page=stock-manager/wp-admin/?s=wp-login.php/?wc-api=/?wc-ajax=/?add-to-cart
   =^/wc-api//wc-api/^/wc-api/v3/products
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/loading-failed-13/#post-16491283)
 * [@smgdarien](https://wordpress.org/support/users/smgdarien/) ,
   Can you also try
   to whitelist `^/wp-json/wc/v3/products` URL also and then have a recheck with
   the Stock Manager for the WooCommerce plugin issue and let us know.If still the
   issue persists, then the issue could be specific to your site. So, would suggest
   you reach out to us from [here](https://www.storeapps.org/support/contact-us/),
   so we can help you in a better way.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Loading Failed’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-stock-manager/assets/icon-256x256.png?rev=2354654)
 * [Stock Manager for WooCommerce](https://wordpress.org/plugins/woocommerce-stock-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-stock-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-stock-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-stock-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-stock-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-stock-manager/reviews/)

## Tags

 * [Varnish Cache](https://wordpress.org/support/topic-tag/varnish-cache/)

 * 5 replies
 * 2 participants
 * Last reply from: [storeapps](https://wordpress.org/support/users/storeapps/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/loading-failed-13/#post-16491283)
 * Status: resolved