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

ClementBR
Shopify Partner
150 2 42

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

 

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

 

Shop: chulo-b2b.myshopify.com

Query:

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

Replies 2 (2)

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

ClementBR
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.