kensvin commited on
Commit
6289423
·
verified ·
1 Parent(s): 1ee2db4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=30
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=30
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}")