I’ve encountered a weird issue in the past week. I’m building a query for orders and wanted to query a small amount of orders due to a handful of connections I want to make. It seems I can’t query for any number of orders less than 33. A request for 33, 50, 100, etc. orders completes in under a second. Queries for 32, 25, 15, 10, etc. never finish. I’ve seen request time run for over 300 seconds and still not receive a result.
I am making request from an Insomnia client.
Query I’m using (without connections)
query {
orders {
complexity
data(first: 33) {
edges {
node {
address_is_business
billing_address {
address1
address2
city
company
country
country_code
email
first_name
last_name
phone
state
state_code
zip
}
box_name
email
fulfillment_status
id
insurance
order_date
order_history {
information
}
order_number
packing_note
partner_order_id
profile
require_signature
shipping_address {
address1
address2
city
company
country
country_code
email
first_name
last_name
phone
state
state_code
zip
}
shop_name
source
subtotal
total_price
}
}
}
}
}
You have a strange one, What I find is that its pulling the first orders back when you first started with shiphero. I’ve always found that it takes a while for older orders. now if you put in a date range, it may be better at populating. If I don’t have the dates, mine don’t finish, even if I have the 33,50 or 100
Hey Tom, I actually haven’t bothered to let it run to time out so the request never returned. I.e. I got no HTTP status code. As mentioned above, I had at least 1 request reach over 300 seconds that still hadn’t returned
I have a very very similar issue on the order_history query. If I dont provide anything it gives me an internal server error. If I try to query exactly 1 matching result it never finishes the request.
correct. If I don’t provide an order_id or order_number or such it just results in an internal error. If I provide a uniquely identifying argument it queries indefinitely without ever responding meaning I have to manually abort the request.
EDIT: correction to my response. I just rechecked with both order_id and order_number (as we mainly use order_number) and it seems not providing these does not result in an error anymore.
The only issue left is that querying for a specific value never finishes the request.