I’m having trouble querying warehouse products and purchase orders. Both queries used to work fine until 1.5-2 months ago. I’m using pagination and allowing all credits to refresh before making subsequent queries. Below is the query I am doing for products:
query warehouse_products {
warehouse_products(updated_from: “2020-11-27”) {
complexity
data(first: 20) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
account_id
sku
warehouse_id
price
value
value_currency
on_hand
inventory_bin
inventory_overstock_bin
reserve_inventory
replenishment_level
reorder_amount
reorder_level
backorder
allocated
available
non_sellable_quantity
customs_value
created_at
updated_at
sell_ahead
active
}
}
}
}
}
The number of products I’m able to successfully pull varies greatly, usually between 300 and 800 different SKUs. The error I always get is “Unexpected Error,” which is quite vague, so I’m unsure how to go about resolving it.