question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Did I set up something wrong?

See original GitHub issue

Hey there, Sorry for the stupid issue, but I’m trying to deploy HULL through Sanity Studio, and my Shopify products won’t sync correctly. I did correctly followed the step 2, 3 and 4 (I added the variables in Vercel and not in a .env file), but when I add a product on Shopify and then sync items I got this :

Untitleds

store
{
  "createdAt": "2022-02-10T09:48:46Z",
  "id": 723xxxx,
  "isDeleted": false,
  "options": [
    {
      "_key": "Color",
      "_type": "option",
      "name": "Color",
      "values": [
        "Black",
        "White",
        "Green"
      ]
    },
    {
      "_key": "Size",
      "_type": "option",
      "name": "Size",
      "values": [
        "Medium",
        "Large",
        "Slim"
      ]
    }
  ],
  "previewImageUrl": "https://cdn.shopify.com/s/files/1/xxxx/xxxx/xxxx/products/xxxx.png?v=xxxx",
  "priceRange": {
    "maxVariantPrice": 68,
    "minVariantPrice": 68
  },
  "productType": "",
  "slug": {
    "_type": "slug",
    "current": "test"
  },
  "status": "active",
  "tags": "",
  "title": "Test",
  "updatedAt": "2022-02-10T09:48:50Z",
  "variants": [
    {
      "_key": "a2dd95eb-43b4-4c42-b50e-xxxx",
      "_ref": "shopifyProductVariant-xxxx",
      "_type": "reference",
      "_weak": true
    },
    {
      "_key": "04db40d1-7745-444b-a30d-xxxx",
      "_ref": "shopifyProductVariant-xxxx",
      "_type": "reference",
      "_weak": true
    },
    {
      "_key": "090894fe-55e1-4327-82e5-xxxx",
      "_ref": "shopifyProductVariant-xxxx",
      "_type": "reference",
      "_weak": true
    },
    {
      "_key": "4eddd48b-65ab-4287-832f-xxxx",
      "_ref": "shopifyProductVariant-xxxx",
      "_type": "reference",
      "_weak": true
    },
    {
      "_key": "9784fc16-3781-48a6-86ea-xxxx",
      "_ref": "shopifyProductVariant-xxxx",
      "_type": "reference",
      "_weak": true
    },
    {
      "_key": "9f8b1440-ba80-449a-a996-xxxx",
      "_ref": "shopifyProductVariant-xxxx",
      "_type": "reference",
      "_weak": true
    },
    {
      "_key": "a10e4987-dc03-43db-970c-xxxx",
      "_ref": "shopifyProductVariant-xxxx",
      "_type": "reference",
      "_weak": true
    },
    {
      "_key": "6c0565c6-2898-4e10-859d-xxxx",
      "_ref": "shopifyProductVariant-xxxx",
      "_type": "reference",
      "_weak": true
    },
    {
      "_key": "52db3a07-958a-47ff-9e70-xxxx",
      "_ref": "shopifyProductVariant-xxxx",
      "_type": "reference",
      "_weak": true
    }
  ]
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
lborrutocommented, Feb 11, 2022

They did change their private/developer app layout, but you still need to setup your storefront API per the readme instructions:

Once you set it up like the above, and you navigate to the “API Credentials” tab you can see the field I’m talking about:

Ok I was setting up the permission in the ‘Admin API Integration’ instead of the ‘Storefront API integration’. Now everything is working fine!

Thanks a lot for the help, you should pin this issue “noob noob guide”! 😁

1reaction
ndimatteocommented, Feb 10, 2022

Hey there @lborruto !

Are you using the Sanity Connect app on Shopify? The data you shared looks exactly like what is sync’d when using that app.

HULL is not built to work with that. Instead, it uses it’s own custom sync methods. If you use the Sanity Connect app it sync’s the shopify data down as a store object for product documents, which would cause you to see the unknown field found warning within Sanity for HULL studios.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Something went wrong we werent able to setup your pin ...
windowshellopin #somethingwentwrong #pinnotworking"Windows hello PIN error something went wrong we werent able to setup your pin.
Read more >
"Something went wrong" error when you try to start an Office app
When trying to start an Microsoft 365 app, you might get this error. Here are some things you can try to fix the...
Read more >
'What Is Wrong With Me?' What to Do If You Feel This Way
Sometimes, the feeling that something is wrong with you might reflect that you simply have a very challenging set of life circumstances.
Read more >
How to Fix "Something Went Wrong Try Again" Issue in ...
If you're getting the "Something went wrong. Try again" elusive error in the Google Play Store, here are some fixes you could try....
Read more >
"something went wrong" while creating account on Windows 10
While creating a new user account through the Command Prompt will not actually solve the “Something went wrong” error when creating a new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found