A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
{ metafieldDefinitions(first: 5, ownerType: CUSTOMER) { edges { node { key namespace } } } }
{ "errors": [ { "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 92bb7c36-ddd3-40a4-9e0f-b3a22cb0021a (include this in support requests).", "extensions": { "code": "INTERNAL_SERVER_ERROR", "requestId": "92bb7c36-ddd3-40a4-9e0f-b3a22cb0021a" } } ] }
Example of PRODUCT working and an INVALIDTYPE returning proper errors
Hey @tzabian1 ,
This error returns when your app doesn't have the necessary permission to access resources owned by whatever ownerType you are requesting through metafieldDefinitions. In this case, you would need to ensure that your app has the read/customers permission before giving it another go.
To learn more visit the Shopify Help Center or the Community Blog.