debug: log reels_media raw response, fix Content-Type
This commit is contained in:
@@ -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", [])
|
||||
|
||||
Reference in New Issue
Block a user