gatsbyjs/gatsby-source-shopify

[object Object] undefined

Closed this issue · 6 comments

There's not a lot of information - but when running gatsby build this is what it spits out

info Cache is cold, running a clean build

 ERROR 

[object Object] undefined



  Error: 

not finished source and transform nodes - 0.453s
not finished Source from bulk operation PRODUCTS - 0.402s

error Command failed with exit code 1.

Thanks for the report! The error reporting should be improved some in version 1.12.2. Could you try upgrading and see if it gives you more information?

@sslotsky wow that was quick! ok error now says:

info Cache is cold, running a clean build

 ERROR #gatsby-source-shopify-experimental_111001 

Could not source from bulk operation



  Error: 

not finished source and transform nodes - 0.415s
not finished Source from bulk operation PRODUCTS - 0.353s

error Command failed with exit code 1.info Cache is cold, running a clean build

 ERROR #gatsby-source-shopify-experimental_111001 

Could not source from bulk operation



  Error: 

not finished source and transform nodes - 0.415s
not finished Source from bulk operation PRODUCTS - 0.353s

error Command failed with exit code 1.

Excellent, ok. That's a small improvement. I'll try to publish another logging improvement today that should get us closer to determining an actual cause.

Ah, I fixed it. I'm upgrading from the old plugin and was using the apiKey from my environment - but it's a DIFFERENT KEY now. Works fine now. My fault!

@beamercola that's great! But it's also our fault for not making the error clear. I published version 1.12.3, which will also add whatever error code the operation failed with to the error message. Hopefully the next person in your position will find this helpful.

...Actually if you don't mind, will you go back to using the wrong API key and try version 1.12.3 again so that we can see what the error code is? The error codes aren't all documented in Shopify so sometimes we need to catch them in the wild to decide how to handle them in the plugin.

@sslotsky yeah no problem - here ya go. It's definitely better, but yeah an "Invalid Credentials" would be choice

 ERROR #gatsby-source-shopify-experimental_111001 

Could not source from bulk operation



  Error: 

not finished source and transform nodes - 0.330s
not finished Source from bulk operation PRODUCTS - 0.279s