Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Simple GraphQL query fails with INTERNAL_SERVER_ERROR

Shopify Partner
150 2 42

How come the following trivial query keeps failing with the following error.


Internal error. Looks like something went wrong on our end. Request ID: a5380348-a92f-4fe8-9a57-f61830fa6ab9 (include this in support requests).




companyLocation(id: "gid://shopify/CompanyLocation/570163490") {
   metafields(first: 1) {
     nodes {

Replies 2 (2)

Shopify Staff
2668 287 727

From our docs it does looks like this is supported, I'll connect with our internal dev teams to see what might be the issue here. In the meantime can you confirm your app has the `read_customers`, or/and `read_companies` scopes?

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 or the Shopify Web Design and Development Blog

Shopify Partner
150 2 42

Hi @Liam 


Yes I confirm that our app has the read_customers permissions.

Permissions errors are different, they tell you exactly what the missing permission is.

Here, it is clearly an error.

Also, the query works fine with other company locations, so this is not a permission issue. It seems to be an issue with this specific company location.