• Resolved jhsingo

    (@jhsingo)


    Hi there,

    I’m having a problem viewing my data in Woocommerce Analytics. I frequently receive the message “there was an error getting your stats. Please try again”. When opening developer tools, I see the following:

    Uncaught (in promise) Object
    /wp-admin/admin.php?…lytics%2Fproducts:1 Uncaught (in promise) Object
    /wp-admin/admin.php?…lytics%2Fproducts:1 Uncaught (in promise) Object
    /wp-json/wc-analytics/products/categories?per_page=100&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-json/wc-analytics/reports/products/stats?order=asc&interval=day&per_page=100&after=2021-12-01T00%3A00%3A00&before=2021-12-10T23%3A59%3A59&fields%5B0%5D=products_count&fields%5B1%5D=items_sold&fields%5B2%5D=net_revenue&fields%5B3%5D=orders_count&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-json/wc-analytics/reports/orders/stats?order=asc&interval=day&per_page=100&after=2021-12-01T00%3A00%3A00&before=2021-12-10T23%3A59%3A59&fields%5B0%5D=orders_count&fields%5B1%5D=net_revenue&fields%5B2%5D=avg_order_value&fields%5B3%5D=avg_items_per_order&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-json/wc-analytics/reports/orders/stats?order=asc&interval=day&per_page=100&after=2020-12-01T00%3A00%3A00&before=2020-12-10T23%3A59%3A59&fields%5B0%5D=orders_count&fields%5B1%5D=net_revenue&fields%5B2%5D=avg_order_value&fields%5B3%5D=avg_items_per_order&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-json/wc-analytics/reports/performance-indicators?after=2021-12-01T00%3A00%3A00&before=2021-12-10T23%3A59%3A59&stats=revenue%2Ftotal_sales%2Crevenue%2Fnet_revenue%2Corders%2Forders_count%2Cproducts%2Fitems_sold%2Cvariations%2Fitems_sold&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-json/wc-analytics/leaderboards?after=2021-12-01T00%3A00%3A00&before=2021-12-10T23%3A59%3A59&per_page=5&persisted_query=%7B%7D&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-json/wc-analytics/reports/orders/stats?order=asc&interval=day&per_page=100&after=2021-12-01T00%3A00%3A00&before=2021-12-10T23%3A59%3A59&fields%5B0%5D=orders_count&fields%5B1%5D=avg_order_value&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-json/wc-analytics/reports/revenue/stats?order=asc&interval=day&per_page=100&after=2020-12-01T00%3A00%3A00&before=2020-12-10T23%3A59%3A59&fields%5B0%5D=total_sales&fields%5B1%5D=net_revenue&fields%5B2%5D=refunds&fields%5B3%5D=shipping&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-json/wc-analytics/reports/revenue/stats?order=asc&interval=day&per_page=100&after=2021-12-01T00%3A00%3A00&before=2021-12-10T23%3A59%3A59&fields%5B0%5D=total_sales&fields%5B1%5D=net_revenue&fields%5B2%5D=refunds&fields%5B3%5D=shipping&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()
    /wp-json/wc-analytics/reports/performance-indicators?after=2020-12-01T00%3A00%3A00&before=2020-12-10T23%3A59%3A59&stats=revenue%2Ftotal_sales%2Crevenue%2Fnet_revenue%2Corders%2Forders_count%2Cproducts%2Fitems_sold%2Cvariations%2Fitems_sold&_locale=user:1 Failed to load resource: the server responded with a status of 503 ()

    Could you suggest anything to fix this, please? I have tried disabling plugins to see if there is any conflict (however, haven’t recently installed any new plugins/themes) but still have this problem.

    I am considering upgrading my current hosting package – might this help solve this?

    Thanks in advance. Let me know if you need me to post my WooCommerce status.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi there,

    So sorry to hear about this.

    As a first step, try clearing the Analytics cache from WooCommerce > Status > Tools > Clear analytics cache, let us know if this works.

    If the issue is not resolved:
    ?

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Thread Starter jhsingo

    (@jhsingo)

    Hello Igor,

    Neither of these solutions worked for me. Even using Storefront and disabling plugins, I still encounter this problem no matter which combination of plugins I have enabled/disabled.

    Furthermore, I get this error when clicking on one of /wp-json/wc-analytics URLs in developer mode:
    {“code”:”woocommerce_rest_cannot_view”,”message”:”Sorry, you cannot list resources.”,”data”:{“status”:401}}

    Can you please suggest another solution, please?

    Thanks

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    Thanks for getting back to us with more details.

    Most likely this issue is server-related and you could ask your host to take a look at the server logs for more information and raise your PHP memory limit.

    As for errors with status 503, this article explains what they could result from:

    https://airbrake.io/blog/http-errors/503-service-unavailable

    Thanks.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    It’s been a while since we last heard back from you. I’m going to mark this thread as resolved.

    Hopefully, you were able to find a way forward with the issue – we’ll be here if and/or when you are ready to continue.

    HI there,
    I am having the same problem, but in an attempt to troubleshoot without affecting my live site, I created a copy, current plugins and all using a WPstaging plugin, and the subsequent staging site did not have the same problem. What could this point to as a possible reason?

    thanks,

    Hello @johnthefox!

    Please consider creating your own thread from the https://www.ads-software.com/support/plugin/woocommerce/#new-topic-0 page. So we can check your issue properly.

    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WooCommerce Analytics ‘There was an error getting your stats’’ is closed to new replies.