debug: log reels_media raw response, fix Content-Type

This commit is contained in:
2026-06-17 12:57:20 +07:00
parent 7040334eec
commit 642f5756d8

View File

@@ -199,7 +199,6 @@ class InstagramMonitor:
resp = self.session.post(
f"{API_BASE}/feed/reels_media/",
json={"user_ids": [user_pk]},
headers={**IG_HEADERS, "Content-Type": "application/x-www-form-urlencoded"},
timeout=30,
)
if resp.status_code != 200:
@@ -375,9 +374,10 @@ class InstagramMonitor:
resp = self.session.post(
f"{API_BASE}/feed/reels_media/",
json={"user_ids": batch},
headers={**IG_HEADERS, "Content-Type": "application/x-www-form-urlencoded"},
timeout=30,
)
logger.debug(f"reels_media batch status: {resp.status_code}")
logger.debug(f"reels_media raw: {resp.text[:500]}")
if resp.status_code == 200:
data = resp.json()
items = data.get("items", [])