#2553·OpenCLI

instagram/user (and instagram/search) fails with "SyntaxError: Unexpected token '<'... is not valid JSON" after successful navigation

Author: ASCHIP1Created Sep 27, 2026Updated Sep 28, 2026

Environment

  • opencli 1.8.8, extension v1.0.24 (Chrome Web Store, last updated 2026-09-01)
  • Windows 11
  • Logged into instagram.com in the same Chrome profile the extension uses

Steps to reproduce

  1. opencli doctor → daemon + extension connected, "Everything looks good!"
  2. opencli instagram user <username> -f yaml (also fails on instagram search)

Observed behavior

  • pre_navigate to https://www.instagram.com completes (takes ~10-25s)
  • Command then fails: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
  • Final captured state/screenshot from --trace retain-on-failure shows about:blank / a blank page
  • opencli facebook profile <user> -f yaml works fine on the exact same setup/profile

Already tried without success

  • Setting extension site access to "On all sites"
  • Checking for an instagram.com-specific site override (none blocking)
  • Reloading the extension
  • Manually browsing instagram.com in that Chrome profile first (to "warm up" the origin) — this did fix an earlier "Navigation rejected" error, but the JSON parse error persists after that

Trace summary (one run)

startedAt: 2026-09-27T20:35:08.755Z
command: instagram/user
errorCode: UNKNOWN
errorMessage: "SyntaxError: Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"

Action Timeline:
- command start {"args":{"username":"instagram","limit":12}}
- pre_navigate start {"url":"https://www.instagram.com"}
- pre_navigate end {"url":"https://www.instagram.com"}  (23s later)
- command error

Happy to attach the full trace.jsonl/screenshots if useful.