Order queries for 32 or less orders never complete

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

~Justin

Hello @jknechtv!

I already have our engineering team aware of this issue. I’ll add your example to the case ticket as well.

Just to confirm, are you getting an HTTP 504 timeout error?

Kind regards,
TomasFD

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