gatsby-shopify-starter icon indicating copy to clipboard operation
gatsby-shopify-starter copied to clipboard

ERROR #85901 for "allShopifyProduct"

Open foamingmonkey opened this issue 3 years ago • 10 comments

Hey guys look like I keep getting these error and it looks like it is in fact connecting to the site but still giving me these errors 1: error an error occurred while sourcing data There was an error in your GraphQL query:

  1. Cannot query field "allShopifyProduct" on type "Query". Did you mean "allShopifyBlog", "allShopifyArticle", "allShopifyShopPolicy", or "allShopifyCollection"?

The site has 400+ products, 20 blogs, etc so not sure why I'm getting the Error ? is it that Shopify changed the tag or is it something else

foamingmonkey avatar Oct 02 '20 20:10 foamingmonkey

Did you use the right API credentials for the Storefront API? Looks like Gatsby can’t access the products.

AlexanderProd avatar Oct 02 '20 22:10 AlexanderProd

yes, 100% the one all the way on the bottom of private apps right? i even changed the SHOP_NAME=graphql on both and nada just errors .. like it will run but error out on templates/ProductPage/index.js

foamingmonkey avatar Oct 03 '20 00:10 foamingmonkey

found the error apparently this only works with a real domain, not a dev domain or dev site.. the site has to be live via Bluehost,GoDaddy etc to run correctly.. anyone has a workaround?

foamingmonkey avatar Oct 04 '20 02:10 foamingmonkey

@foamingmonkey What do you mean with it doesn’t work with a dev domain or dev site?

AlexanderProd avatar Oct 04 '20 12:10 AlexanderProd

Hey Alex, you know on Shopify you can make your own Development site before you publish well that didn't work for me, I called it something like myspeedbuild2/myshopify.com and that errored out regardless of what I tried ( again I had products, blog, etc all set up on the dummy site) . So I grabbed my client's site a live site and tested to see if it was just the Domain meaning the site has to be live for the gatsby to pull from and connected. Well, that is my best guest but IDK I'm new to gatsby, to be honest.

With my client's site, it connected however since my client's site has over 3 million photos it froze out the terminal

foamingmonkey avatar Oct 05 '20 16:10 foamingmonkey

Hi there!

I am also running into this error though I haven't added in my own API Keys and credentials. Getting it from just installing and running out of the box from this repo. Thoughts?

ocmartineau avatar Feb 14 '21 20:02 ocmartineau

@ocmartineau I've just tried it by cloning the repo fresh and running yarn start as well as yarn build but it worked for me. What environment are you in? Node version, OS, anything out of the ordinary?

AlexanderProd avatar Feb 15 '21 09:02 AlexanderProd

I am also experiencing the same issue with a test store. Our test store has a lot of collections and products. I saw a related issue here: https://github.com/angeloashmore/gatsby-source-shopify/issues/24

The error is most likely caused during the initialization/build of the application. Gatsby is downloading/fetching the data from the Shopify Storefront API. It'll throw a timeout (despite providing a lower paginationSize in the configuration file). I strongly believe this should be handled by the gatsby-source-shopify plugin.

arjayosma avatar Feb 18 '21 10:02 arjayosma

My site has been live for a few days now. I added web hooks so it would build on Product: Addition, Deletion, and Update. But today it through this error when building with Netlify

error There was an error in your GraphQL query: 3:07:51 PM: Cannot query field "allShopifyProduct" on type "Query". 3:07:51 PM: If you don't expect "allShopifyProduct" to exist on the type "Query" it is most likely a typo.

krichey15 avatar Mar 17 '21 22:03 krichey15

I'm getting the same kind of problem but with allReview

kaueburiti avatar Aug 02 '21 10:08 kaueburiti