Shopify / mobile-buy-sdk-ios

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452 stars 199 forks source link

MobileBuySDK Timeout Error #940

Closed HermanKayy closed 5 years ago

HermanKayy commented 5 years ago

[MobileBuySDK.Graph.QueryError.Reason(message: "Timeout", line: nil, column: nil)])

I get this error message when I tried to add image to my graphQL variant query call.


        .pageInfo { $0
            .hasNextPage()
        }
        .edges { $0
            .cursor()
            .node { $0
                .id()
                .title()
                .price()
                .availableForSale()
                .compareAtPrice()
                .selectedOptions() { $0
                    .name()
                    .value()
                }
                .image() { $0
                    .id()
                    .src()
                    .altText()
                }
            }
        }
    }
rebeccajfriedman commented 5 years ago

@HermanKayy Can you provide your app name or shopify domain so that we can investigate this on our side?

HermanKayy commented 5 years ago

This happens on all the shopify stores we're working on whenever we have a query for variants that include images

rohitkowadkar commented 5 years ago

@HermanKayy @rebeccajfriedman I also faced this timeout error and it got resolved when I set the limit to variants and their image in the query (e.g. first:20) and received the products. but when I increased limit was getting the timeout error.

rebeccajfriedman commented 5 years ago

Thanks for elaborating @rohitkowadkar. It sounds like your queries are too complex. I suggest limiting the number of collections / products / variants that you are trying to pull in each query.