We are trying to get Discount Codes for a Shopify Store and are getting INTERNAL_SERVER_ERROR, even after multiple retries. The issue seems to only occur for this specific Shopify Store.
This is the query that we run inside the bulk operation:
query{codeDiscountNodes(query:\"discount_type:bogo OR discount_type:free_shipping OR discount_type:fixed_amount OR discount_type:percentage\"){edges{node{id codeDiscount{__typename ... on DiscountCodeApp{title} ... on DiscountCodeBasic{title asyncUsageCount summary status startsAt endsAt minimumRequirement{__typename ... on DiscountMinimumQuantity{greaterThanOrEqualToQuantity} ... on DiscountMinimumSubtotal{greaterThanOrEqualToSubtotal{amount}}} customerGets{value{__typename ... on DiscountAmount{amount{amount}} ... on DiscountOnQuantity{quantity{quantity}} ... on DiscountPercentage{percentage}}} totalSales{amount} codes{edges{node{id code}}}} ... on DiscountCodeBxgy{title asyncUsageCount summary status startsAt endsAt totalSales{amount} codes{edges{node{id code}}}} ... on DiscountCodeFreeShipping{title asyncUsageCount summary status startsAt endsAt minimumRequirement{__typename ... on DiscountMinimumQuantity{greaterThanOrEqualToQuantity} ... on DiscountMinimumSubtotal{greaterThanOrEqualToSubtotal{amount}}} totalSales{amount} codes{edges{node{id code}}}}}}}}}
I’ve looked up the error on our internal logs and I can’t find any extra info to determine why this is happening - it’s possible another app could be interfering with this query? I’d recommend asking the merchant to contact support directly and they’ll be able to look deeper once they authenticate the merchant.