Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Simple GraphQL query fails with INTERNAL_SERVER_ERROR

Simple GraphQL query fails with INTERNAL_SERVER_ERROR

ClementBR
Shopify Partner
161 2 51

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
Community Manager
3108 344 904

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
161 2 51

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.