Upload 5 files
Browse files
main.py
CHANGED
|
@@ -31,7 +31,10 @@ async def forward_to_rumas(b64_str: str):
|
|
| 31 |
async with httpx.AsyncClient(timeout=60) as client:
|
| 32 |
resp = await client.post(RUMAS_API_URL, json=payload)
|
| 33 |
resp.raise_for_status()
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
| 35 |
print(f"[RUMAS] ✔ {resp.status_code} {body}")
|
| 36 |
|
| 37 |
# OPTIONAL: notify user (comment out if you prefer silent)
|
|
|
|
| 31 |
async with httpx.AsyncClient(timeout=60) as client:
|
| 32 |
resp = await client.post(RUMAS_API_URL, json=payload)
|
| 33 |
resp.raise_for_status()
|
| 34 |
+
# ── log the full JSON response (truncated to 300 chars for brevity) ──
|
| 35 |
+
data = resp.json()
|
| 36 |
+
print(f"[RUMAS] ✔ 200 {json.dumps(data)[:300]}…")
|
| 37 |
+
body = data
|
| 38 |
print(f"[RUMAS] ✔ {resp.status_code} {body}")
|
| 39 |
|
| 40 |
# OPTIONAL: notify user (comment out if you prefer silent)
|