Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def request_product_id(shop_domain, product_key):
|
|
94 |
url=ENDPOINT,
|
95 |
json=payload,
|
96 |
headers=headers,
|
97 |
-
timeout=
|
98 |
)
|
99 |
response.raise_for_status() # Raise an exception for non-2xx status codes
|
100 |
logger.info(f"Request successful. Status code: {response.status_code}")
|
@@ -177,7 +177,7 @@ def request_product_review(product_id, page=1, limit=20):
|
|
177 |
|
178 |
try:
|
179 |
response = requests.request(
|
180 |
-
method="POST", url=ENDPOINT, json=payload, headers=headers, timeout=
|
181 |
)
|
182 |
response.raise_for_status() # Raise an exception for non-2xx status codes
|
183 |
logger.info(f"Request successful. Status code: {response.status_code}")
|
|
|
94 |
url=ENDPOINT,
|
95 |
json=payload,
|
96 |
headers=headers,
|
97 |
+
timeout=60
|
98 |
)
|
99 |
response.raise_for_status() # Raise an exception for non-2xx status codes
|
100 |
logger.info(f"Request successful. Status code: {response.status_code}")
|
|
|
177 |
|
178 |
try:
|
179 |
response = requests.request(
|
180 |
+
method="POST", url=ENDPOINT, json=payload, headers=headers, timeout=60
|
181 |
)
|
182 |
response.raise_for_status() # Raise an exception for non-2xx status codes
|
183 |
logger.info(f"Request successful. Status code: {response.status_code}")
|