Unable to get nonFulfillableLineItems. Error on Shopify's end.

jordi735
New Member
2 0 0

Hi!

I've been toying around with building a Shopify app for awhile but since this evening I've come across a problem which I haven't been able to solve.

I'm trying to get recent orders using the admin graphql API. All works fine until I try to add nonFulfillableLineItems to the graphql query on which I'm greeted with "Error: Internal error. Looks like something went wrong on our end."

My query is as follows: https://pastebin.com/iRzs039Z

As you can see nonFulfillableLineItems is somewhere in there. When I remove it the query instantly works again.

Some request IDs (same exact request) might help aswell:

  • fbf70155-b066-4279-b16d-279fb64a4024
  • f9219e54-11a0-469d-a420-612a3f1f66bb
  • 3bc37ab0-df8e-49fa-973a-bfea1baf1938

I'd love to get some help!

Jordi.

0 Likes
jordi735
New Member
2 0 0

I have also tried to changing it to just:

{
  orders(first: 5) {
    edges {
      node {
        nonFulfillableLineItems(first: 1) {
          pageInfo {
            hasNextPage
          }
        }
      }
    }
  }
}

To no avail. Still "Error: Internal error. Looks like something went wrong on our end."

0 Likes
syf_
Shopify Staff
Shopify Staff
49 10 9

Hi Jordi,

Thanks for your post. I've been able to confirm that this is a bug on our side, and affects any field of LineItemConnection! an LineItemMutableConnection!. 

I was able to reproduce the error, but only when I didn't add edges on nonFulfillableLineItems as shown below, which seems odd. 

query {
  orders(first: 5) {
    edges {
      node {
        nonFulfillableLineItems(first: 1) {
          pageInfo {
            hasNextPage
          }
        }
      }
    }
  }
}

This call below on the other hand, is successful for me.

query {
  orders(first: 5) {
    edges {
      node {
        nonFulfillableLineItems(first: 1) {
          edges {
            node {
              id
            }
          }
          pageInfo {
            hasNextPage
          }
        }
      }
    }
  }
}

 

Would you be able to confirm for me if you're experiencing the same behaviour?

Also, to let you know, our team of developers have been notified and a fix is in the works. I don't have a timeline on when this would happen, but when it does, I'd post in this thread.

Hopefully this is helpful information. If there's any other issue you're experiencing with nonFulfillableLineItems, don't hesitate to reach out on here.

 

Best,

Seth.

syf_ | Developer Support @ 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

0 Likes
syf_
Shopify Staff
Shopify Staff
49 10 9

Hi @jordi735,

Just wanted to update you on this and let you know a bugfix has been released. Thanks once again for bringing this to our attention.

 

Thanks,

Seth. 

syf_ | Developer Support @ 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

0 Likes