{"id":12822027,"date":"2020-05-12T15:47:57","date_gmt":"2020-05-12T15:47:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/loading-failed-3\/"},"modified":"2020-07-24T11:58:45","modified_gmt":"2020-07-24T11:58:45","slug":"loading-failed-3","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/loading-failed-3\/","title":{"rendered":"Loading Failed"},"content":{"rendered":"<p>After migrating a development instance to live on a different host the Stock Manager loads and then replies with a &#8220;Loading Failed&#8221; error instead of returning data on live, but is fine on dev.  Upon inspection it looks like http:\/\/site-url\/wp-json\/wc\/v3\/products?per_page=50 returns nothing with a JS error of &#8220;TypeError: Cannot read property &#8216;split&#8217; of null&#8221; in wpApiMiddleware.js:97.  in looking at that file line 97 is within the catch statement and it&#8217;s trying to send the error.toString, but apparently the error is null.  So it seems like a null error is getting thrown.<\/p>\n<p>Any assistance in resolving this issue is appreciated.<\/p>\n<p>ljalg<\/p>\n","protected":false},"template":"","class_list":["post-12822027","topic","type-topic","status-closed","hentry","topic-tag-loading-failed"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12822027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12822027\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12822027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}