Deleting collections causes build error

I removed my default collections from my shopify store, i can verify that I am using the proper api keys etc for my store, but for some reason i am getting this error:

Build error occurred
Error: Export encountered errors on following paths:
/en-US/collection/men
/en-US/collection/men-1
/en-US/collection/mens
/en-US/collection/spring
/en-US/collection/womens

Nope. I’m dumb. My api key got rolled back to the demo version. disregard!

1 Like

Actually this is still persisting. I have no idea why. Can someone please help? My entire build is failing and I have to go live with this store on Friday, and I cannot find the source of this bug. The names of the collection coincide with the demo collections, but I can’t figure out why i am still referencing these.

Thanks for all the help so far @aziz @maddy

the getAllCollections method in operations-builder seems to be fetching every collection I have ever created in the store, is this list of collections cached somewhere and can I delete it? Or is there maybe something wrong with the way i set up my collections model that might be leading it to try ot fetch all of these nonexistent collections?

{
  collections: [
    {
      description: '',
      descriptionHtml: '',
      handle: 'spring',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3MjQ4MDEwODcwMA==',
      image: null,
      title: 'spring',
      type: [Object],
      updatedAt: '2021-07-12T19:41:31Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'mens',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3MjQ4MDE0MTQ2OA==',
      image: null,
      title: 'mens',
      type: [Object],
      updatedAt: '2021-07-12T19:41:45Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'womens',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3MjQ4MDE3NDIzNg==',
      image: null,
      title: 'womens',
      type: [Object],
      updatedAt: '2021-07-12T19:41:57Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'men',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3MjQ4MDQzNjM4MA==',
      image: null,
      title: 'men',
      type: [Object],
      updatedAt: '2021-07-12T19:42:58Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'men-1',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3Mzk3ODk4MjU1Ng==',
      image: null,
      title: 'men',
      type: [Object],
      updatedAt: '2021-07-30T20:00:26Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'womens',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3Mzk3OTAxNTMyNA==',
      image: null,
      title: 'womens',
      type: [Object],
      updatedAt: '2021-07-30T20:00:43Z'
    },
    {
      description: 'placeholder',
      descriptionHtml: 'placeholder',
      handle: 'spring',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3Mzk3ODg4NDI1Mg==',
      image: null,
      title: 'spring',
      type: [Object],
      updatedAt: '2021-07-30T19:59:42Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'men',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3Mzk3ODkxNzAyMA==',
      image: null,
      title: 'mens',
      type: [Object],
      updatedAt: '2021-07-30T20:00:02Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'mens',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3Mzk4MzQ3MTc3Mg==',
      image: null,
      title: 'mens',
      type: [Object],
      updatedAt: '2021-07-30T20:49:04Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'men-1',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3Mzk4Mzk5NjA2MA==',
      image: null,
      title: 'men-1',
      type: [Object],
      updatedAt: '2021-07-30T20:57:46Z'
    },
    {
      description: 'test',
      descriptionHtml: 'test',
      handle: 'men',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3Mzk4Mzg5Nzc1Ng==',
      image: null,
      title: 'men',
      type: [Object],
      updatedAt: '2021-07-30T20:56:14Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'test',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3NTg5MjQzNzE0OA==',
      image: null,
      title: 'men',
      type: [Object],
      updatedAt: '2021-08-24T19:16:29Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'men-1',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3NTg5MjUwMjY4NA==',
      image: null,
      title: 'men-1',
      type: [Object],
      updatedAt: '2021-08-24T19:10:29Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'mens',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3NTg5MjUzNTQ1Mg==',
      image: null,
      title: 'mens',
      type: [Object],
      updatedAt: '2021-08-24T19:10:41Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'spring',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3NTg5MjYwMDk4OA==',
      image: null,
      title: 'womens',
      type: [Object],
      updatedAt: '2021-08-24T19:16:36Z'
    },
    {
      description: 'This is a test collection!',
      descriptionHtml: 'This is a test collection!',
      handle: 'seven-collection',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3MDc0Mzk5NDUyNA==',
      image: [Object],
      title: 'Seven Collection',
      type: [Object],
      updatedAt: '2021-08-25T14:42:52Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'frontpage',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI2NzI1NTU0NjAxMg==',
      image: null,
      title: 'Home page',
      type: [Object],
      updatedAt: '2021-06-23T15:27:21Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'spring',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3MjQ4MDEwODcwMA==',
      image: null,
      title: 'spring',
      type: [Object],
      updatedAt: '2021-07-12T19:41:31Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'mens',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3MjQ4MDE0MTQ2OA==',
      image: null,
      title: 'mens',
      type: [Object],
      updatedAt: '2021-07-12T19:41:45Z'
    },
    {
      description: '',
      descriptionHtml: '',
      handle: 'womens',
      id: 'Z2lkOi8vc2hvcGlmeS9Db2xsZWN0aW9uLzI3MjQ4MDE3NDIzNg==',
      image: null,
      title: 'womens',
      type: [Object],
      updatedAt: '2021-07-12T19:41:57Z'
    }
  ]
}

I got a notification that my delete webhook is failing, how can i fix that? That is most likely the source of the issue:

Your webhook for collections/delete at https://cdn.builder.io/api/v1/shopify-sync?modelName=shopify-collection&resourceName=collection&apiKey=d58e15993bf84115968f2dd035ee71a4&pluginId=@builder.io/plugin-shopify