Skip to content

Collection not returning all products #951

Open
@zaewin

Description

@zaewin

We've been using the JS Buy SDK for several years and it's always been working fine.

We're using the SDK to fetch collections, collections with products and products, to name a few scenarios. The one that's specifically stopped working today was "fetch collection with products":

client.collection.fetchWithProducts(collection_id, { productsFirst: 250 }).then((collection) => { // do something with products });

This has always worked but stopped working yesterday. The collection returned only one or sometimes no products. We started unpublishing and republishing products and after a while the republished products showed up.

Does anyone have any idea why this might occur? It's a completely new issue for us which makes it extremely strange. We're using the latest version of the SDK (/js-buy-sdk/v2/latest/index.umd.min.js)

Thanks.

Magnus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions