Unable to retrieve "PAGE" metafields using GRAPHQL

Hey, I’m trying to make a GRAPHQL request via Postman.

{
    metafieldDefinitions (first: 250, ownerType: PAGE) {
        edges {
            node {
                description
                id
                key
                metafieldsCount
                name
                namespace
                ownerType
                pinnedPosition
                validationStatus
            }
        }
    }
}

Response:

{
    "errors": [
        {
            "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 578154bb-038f-4101-8157-bc0421ad7508 (include this in support requests).",
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "requestId": "578154bb-038f-4101-8157-bc0421ad7508"
            }
        }
    ]
}

All other metafields are working with this query. Can you please tell me can I fix this somehow? Can you also tell me what are possible fields that can be returned I only found the fields above such as (id, description, key, etc.), where I can find this list?

1 Like

The solution is to add the “content” API access scope. Sounds like they’re fixing it to return a 500 error instead, now.

https://community.shopify.com/c/metafields-and-custom-data/metafielddefinitions-graphql-query-for-ownertype-page-results-in/m-p/2301195/highlight/true#M2008