A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi,
I am below error inconsistently, when I try to hit shopify orders API. Please help to provide a solution.
HTTPSConnectionPool(host='xxx.myshopify.com', port=443): Max retries exceeded with url: /admin/api/2021-01/orders.json?created_at_min=2022-05-13T18:30:00+05:30&created_at_max=2022-05-23T18:30:00+05:30&limit=250&status=any (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f733ad40760>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Hi @Selvalakshmi - thanks for getting in touch, definitely an odd issue.
One thing I can say that will frequently cause that "Temporary Failure In Name Resolution" error message are local firewall settings. Generally, this error means that your local DNS server can't resolve the domain name provided into an IP address.
I'd try temporarily disabling any firewalls or proxies/DNS servers you might be using and make the API call again if possible. If the issue persists after that, we can still definitely look into this together.
I'd need a request ID (x-request-id) from an API response header if you can provide that in order to look into our logs further, but if you're able to supply one, I'd be able to take a look on our end to see if we can find out what's causing the issue.
Hope to hear from you soon.
Cheers!
Alan | API 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
Hi @Alan ,
Thanks for your response. I have added x-request-id as you have suggested. As this issue is inconsistent and not able to reproduce, I will share the id here when I get the issue again.
Hi @Alan ,
Today I am facing this issue again, We have also retried 5 times. Please find below the request IDs highlighted.
2022-05-30
a652427e-dfaf-11ec-97f9-42010a800003
HTTPSConnectionPool(host='xxx.myshopify.com', port=443): Max retries exceeded with url: /admin/api/2021-01/orders.json?created_at_min=2022-05-19T18:30:00+05:30&created_at_max=2022-05-29T18:30:00+05:30&limit=250&status=any (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f14a803b760>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Retrying 1 time
3569ff06-dfb0-11ec-97f9-42010a800003
HTTPSConnectionPool(host='xxx.myshopify.com', port=443): Max retries exceeded with url: /admin/api/2021-01/orders.json?created_at_min=2022-05-19T18:30:00+05:30&created_at_max=2022-05-29T18:30:00+05:30&limit=250&status=any (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f14a803b760>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Retrying 2 time
0c09571e-dfb1-11ec-97f9-42010a800003
HTTPSConnectionPool(host='xxx.myshopify.com', port=443): Max retries exceeded with url: /admin/api/2021-01/orders.json?created_at_min=2022-05-19T18:30:00+05:30&created_at_max=2022-05-29T18:30:00+05:30&limit=250&status=any (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f14a803b5e0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Retrying 3 time
2a2c0948-dfb2-11ec-97f9-42010a800003
HTTPSConnectionPool(host='xxx.myshopify.com', port=443): Max retries exceeded with url: /admin/api/2021-01/orders.json?created_at_min=2022-05-19T18:30:00+05:30&created_at_max=2022-05-29T18:30:00+05:30&limit=250&status=any (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f14a803b6d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Retrying 4 time
8fd8e454-dfb3-11ec-97f9-42010a800003
HTTPSConnectionPool(host='xxx.myshopify.com', port=443): Max retries exceeded with url: /admin/api/2021-01/orders.json?created_at_min=2022-05-19T18:30:00+05:30&created_at_max=2022-05-29T18:30:00+05:30&limit=250&status=any (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f14a803b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Can you please help to check these requests at your end?
Hey @Selvalakshmi
Thanks for sending those request IDs our way - I took a look at our logs on my end here and I was unable to find any of the request IDs you shared. They do look correctly formatted however, are you sourcing these from within your app itself or elsewhere?
If you could try using an API Client like Postman or Insomnia to replicate the call using your app's authentication credentials and source the request from the response in those clients, I could look into the issue further on my end too.
As well, if you have an app ID (listed in your partner dashboard, if you created your app that way), I could also retrieve logs using that.
Thanks again for trying that - happy to see if we can help out here.
Alan | API 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
@Alan ,
As I am unable to reproduce the issue, I cannot hit from Postman and replicate the same. Can you provide an email to share the ID to check further?
Hi @Selvalakshmi - no worries, thanks for trying that as well. If you'd like, you can use our Report an Issue Form, if you login using a Shopify Partners account and we'd be able to assist via email that way. There's more info here on how to set up a Partners account if you haven't already - it's free!
Hope this helps - hope to hear from you soon.
Alan | API 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