INTERNAL_SERVER_ERROR with Graphql deliveryProfileRemove

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.

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.

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.

Thank you! I checked it was indeed the case.