From 642f5756d8425e042ff49b7e41edabfbfd80d44b Mon Sep 17 00:00:00 2001 From: smolkik-code Date: Wed, 17 Jun 2026 12:57:20 +0700 Subject: [PATCH] debug: log reels_media raw response, fix Content-Type --- instagram_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instagram_monitor.py b/instagram_monitor.py index df26a7a..b463076 100644 --- a/instagram_monitor.py +++ b/instagram_monitor.py @@ -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", [])