Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -292,8 +292,7 @@ async def mobile_process_receipts(background_tasks: BackgroundTasks, sheeturl: s
|
|
| 292 |
"mode": "alert-user",
|
| 293 |
"mimeType": image.content_type,
|
| 294 |
}
|
| 295 |
-
|
| 296 |
-
async with httpx.AsyncClient(follow_redirects=True) as client:
|
| 297 |
response = await client.post(appsScriptsURL, json=body)
|
| 298 |
if response.status_code != 200:
|
| 299 |
logging.error(f"Unexpected response from Google Apps Script API: {response.status_code} - {response.text}")
|
|
|
|
| 292 |
"mode": "alert-user",
|
| 293 |
"mimeType": image.content_type,
|
| 294 |
}
|
| 295 |
+
async with httpx.AsyncClient(follow_redirects=True, timeout=timeout) as client:
|
|
|
|
| 296 |
response = await client.post(appsScriptsURL, json=body)
|
| 297 |
if response.status_code != 200:
|
| 298 |
logging.error(f"Unexpected response from Google Apps Script API: {response.status_code} - {response.text}")
|