Now because I see no errors in my dev console, partner’s dashboard etc., I have no way to figure out where/what the issue is. Can someone please look into this?
Also including the graphql error as seen in the browser:
[
{
“message”: “Internal error. Looks like something went wrong on our end.\nRequest ID: dab38efe-0531-4b2b-8378-6a88b63db1da (include this in support requests).”,
“extensions”: {
“code”: “INTERNAL_SERVER_ERROR”,
“requestId”: “dab38efe-0531-4b2b-8378-6a88b63db1da”
}
}
]
It’s possible this issue is being caused by an internal server error occurring on Shopify’s end when applying the discount code at checkout, which I’m looking into.
In the meantime, there’s a couple things you could do to troubleshoot this:
Confirm Functionality: Create a different function that performs a simpler task, such as a simple discount on a product, and apply it to a discount code. If this works, it points towards a specific issue with applying this shipping discount via a Shopify function.
Test the Checkout Flow: Perform tests on your checkout flow. Create different types of discounts, apply them, and proceed to checkout. See if the issue arises with any other discounts or only with the shipping discount.
Validate the Function: Double-check the function and ensure that it’s correctly written and follows all necessary guidelines. This includes the structure of the function and its syntax.
If you check these, I’ll also look into things on our side so see what might be causing this. Hope this helps,
@Liam , I checked the things you’d asked. The function works with the checkout flow without a server error in all other cases. It only seems to have the server error with the shipping function with a CODE (even shipping function with automatic discount works without error).
Hi Topshop - so I’ve checked this with our product teams and it appears that shipping discount functions aren’t currently supported, (although we are working on supporting these).
@Liam , it shows as being in Developer Preview. Should I wait to develop against it until it’s out of preview? Just trying to understand the process. Also, any timelines for when it would be ready to be used would help us plan better.