poshify-utilities icon indicating copy to clipboard operation
poshify-utilities copied to clipboard

Cannot load Shop metafields

Open vasiliki-b-zz opened this issue 3 years ago • 5 comments

Description

  • Selecting the Shop option from the dropdown in the editor results in an infinite loading screen.

Environment

  • macOS Big Sur Version 11.2.2
  • Chrome Version 89.0.4389.82 (Official Build) (x86_64)

image

vasiliki-b-zz avatar Mar 09 '21 01:03 vasiliki-b-zz

I've tried this on multiple shops and it's working correctly.

I suggest that you should first try logging out and logging in again, it may help.

If not, please tell me:

  1. Do other resources are working correctly?
  2. Before selecting the shop option, open up the browser dev tools and watch the network tab. Then select the shop option and see if the ajax request is successful or not? If not, what error/status code is it?

husseyexplores avatar Mar 09 '21 06:03 husseyexplores

Looking at the Network tab as you suggested, after I click on Shop it just continuously repeats the calls, as shown in the image below:

Screen Shot 2021-03-15 at 7 47 12 PM

The responses are 200 but for some reason it keeps repeating? I have tried unmounting/mounting the app and also removing completely and re-adding.

vasiliki-b-zz avatar Mar 15 '21 23:03 vasiliki-b-zz

Okay. Can you tell me how many metafields are there on the shop resource? You can get the total count from here: https://change-this-handle-to-your-shop.myshopify.com/admin/api/2020-10/metafields/count.json

Don't forget to change the myshopify subdomain to the correct shop.

I think the shop has too many metafields. We currently fetch all the metafields, assuming there will be 5 or fewer pages.

husseyexplores avatar Mar 16 '21 07:03 husseyexplores

37150 😵

vasiliki-b-zz avatar Mar 16 '21 14:03 vasiliki-b-zz

Thanks for reporting this. That's an edge case for sure. I'll add a "load more" button if there are > 2000 metafields. Hopefully within the next month!

husseyexplores avatar Mar 16 '21 15:03 husseyexplores