Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

INTERNAL_SERVER_ERROR with Graphql deliveryProfileRemove

Solved

INTERNAL_SERVER_ERROR with Graphql deliveryProfileRemove

edweis
Shopify Partner
16 0 4

I am running the following request

mutation deliveryProfileRemove($id: ID!) {
  deliveryProfileRemove(id: $id) {
    userErrors { field message
  }
}

With

{"id":"gid: //shopify/DeliveryProfile/113523523873"}

And the API returns

{
    "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: f5ac534d-21b8-4e60-8ef3-3d5a4508def7 (include this in support requests).",
    "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "requestId": "f5ac534d-21b8-4e60-8ef3-3d5a4508def7"
    }
}

Note that in the end the deliveryProfile was not removed.

Sometimes the endpoints work. Here it failed multiple times in a row.

 

Are you able to investigate this issue? Thank you.

Accepted Solution (1)

SBD_
Shopify Staff
1831 273 419

This is an accepted solution.

Hey @edweis 

 

Thanks for the request ID. Looks like that delivery profile was already removed (about 30 seconds before your mutation came through). We should improve our error handling around this one - I'll forward your example to the delivery folks.

Scott | Developer Advocate @ Shopify 

View solution in original post

Replies 3 (3)

Liam
Community Manager
3108 342 884

 

Hi Edweis,

 

If you have access to the server logs, check them for any further details about what might be causing the error.

 

Another thing to check would be to ensure the ID you are using to remove the delivery profile is valid and see that you're not exceeding Shopify's API rate limits.

Liam | Developer Advocate @ 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

SBD_
Shopify Staff
1831 273 419

This is an accepted solution.

Hey @edweis 

 

Thanks for the request ID. Looks like that delivery profile was already removed (about 30 seconds before your mutation came through). We should improve our error handling around this one - I'll forward your example to the delivery folks.

Scott | Developer Advocate @ Shopify 

edweis
Shopify Partner
16 0 4

Thank you! I checked it was indeed the case.