FROM CACHE - en_header

GraphQL error: Internal error. Looks like something went wrong on our end.

williamFP
New Member
2 0 0

I am running a query with  GraphQL Admin API for a specific discount code and I am getting this error message:

Internal error. Looks like something went wrong on our end. Request ID: 75344bb4-5f18-4ab0-8ee3-baf568cff973 (include this in support requests).

 I was able to run the same query in the Shopify GraphiQL App

Replies 3 (3)
_JCC_
Shopify Staff
Shopify Staff
183 26 40

Hey @williamFP,

Happy to help you out with this issue.

Sorry that some time has past since the initial report. Could you provide a more recent request-id (ideally last few days) exhibiting the same behaviour.

Regards,

John

John C | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

williamFP
New Member
2 0 0
Hello John.

I just ran the query and it returned this error ID:
b1ae49ee-7011-46d8-8da6-5ffff795863b.

And this is the query I am trying to run
{
codeDiscountNode(id: "gid://shopify/DiscountCodeNode/760398807203") {
id
codeDiscount {
__typename
... on DiscountCodeBxgy {
appliesOncePerCustomer
startsAt
endsAt
summary
title
usageLimit
usesPerOrderLimit
customerBuys {
value
}
}
}
}
}

Thanks

- Will
_JCC_
Shopify Staff
Shopify Staff
183 26 40

Will,

I was having a look at the logs and noticed you've had some successful requests after providing the most recent request-id.

Appears that the request via Insomnia are successful and requests via the Shopify Api Node module are failing. Do I have that correct?

I've attempted to use your query against my own test store using the Shopify Api Node module in the following way and haven't had any issues.

shopify
    .graphql(query)
    .then((discountCodes) => console.log(discountCodes))
    .catch((err) => console.error(err));

Is this how you're using the Shopify Api Node module when you have the requests failing? 

John C | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog