Read timed out when getting list orders via REST Order API

Hi there,

My server sends a request to get list orders via REST Order API. It automatically runs every 3 minutes.

But, sometimes (about 10 minutes per time), I got an error like

**HTTPSConnectionPool(host='xxx.myshopify.com', port=443): Read timed out.**

This is my request:

GET https://xxx.myshopify.com/admin/api/2022-01/orders.json
timeout = (30, 60), 
headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'X-Shopify-Access-Token': 'xxx', 'X-Request-ID': '8c9c163e-c601-4d5f-b0ce-9d7a373d5d03'}, 
params = {'status': 'any', 'fields': 'id,billing_address,customer,discount_applications,discount_codes,financial_status,fulfillments,fulfillment_status,line_items,name,note,order_number,refunds,shipping_address,shipping_lines,total_discounts,created_at,currency,tax_lines,cancelled_at,gateway', 'limit': 250, 'updated_at_min': '2023-04-18T06:59:56'}}

The following request id that I got timed out error:

  • 8c9c163e-c601-4d5f-b0ce-9d7a373d5d03
  • f04b0fa9-501f-4e17-b51f-fa4c0a1c394c
  • 94eacf77-ea05-4103-822a-3bade88495a4

Hi @ThamNguyen ,

Thanks for your post. Since this isn’t the kind of error we can replicate in a test store please reach out [to Partner Support using the email option] and select the ‘App Development & API’ topic, and submit a more detailed request with the date, time, and timezone for the example request ID’s, store domain and app.

Please note that we can only look around 7-14 days back so the examples would need to be recent.

Thanks and hope you have a great day