Hi,
I have a public application that makes use of the write_themes
access scope and has exemption for the Assets API in order to modify theme files.
Now that I’m migrating everything to GraphQL, I’m using themeFilesUpsert
and themeFilesDelete
mutations to delete/create/update theme assets.
Based on the docs, both mutations need the same access scopes. However, while themeFilesUpsert
mutation runs successfully and returns the expected response, themeFilesDelete
mutation returns an error, namely “Internal error”. After I executed the delete mutation, I checked my theme files in the Shopify theme editor and I saw the file got deleted though…
I’ve executed the steps above multiple times with the same results.
Here’s the details of the last execution for the themeFilesDelete
mutation:
Time: 4:18 PM CET
{
"errors": [
{
"message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 514edb9d-9c00-40e6-8db4-d7458876f9be-1731511115 (include this in support requests).",
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"requestId": "514edb9d-9c00-40e6-8db4-d7458876f9be-1731511115"
}
}
],
"data": null
}
I would really appreciate any input on this.