Skip to content

Commit ac7bb99

Browse files
authored
timeout increased to 10sec
before timeout set to 5sec its very low some times if network is not good getting this error : raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='......', port=....): Read timed out. (read timeout=5) for every two request i am getting this problem so i increased the timeout to 10 sec... Thank you.
1 parent 003e299 commit ac7bb99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

woocommerce/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, url, consumer_key, consumer_secret, **kwargs):
2727
self.wp_api = kwargs.get("wp_api", True)
2828
self.version = kwargs.get("version", "wc/v3")
2929
self.is_ssl = self.__is_ssl()
30-
self.timeout = kwargs.get("timeout", 5)
30+
self.timeout = kwargs.get("timeout", 10)
3131
self.verify_ssl = kwargs.get("verify_ssl", True)
3232
self.query_string_auth = kwargs.get("query_string_auth", False)
3333
self.user_agent = kwargs.get("user_agent", f"WooCommerce-Python-REST-API/{__version__}")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy