mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-14 04:09:09 +00:00
The 'Check Duplicate Issues' workflow has been failing with json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 2792467 whenever an open issue body contains a Unicode line/paragraph separator (U+2028 / U+2029). Root cause: fetch_open_issues() called 'gh api --paginate' and then str.splitlines() on the raw output. gh concatenates JSON pages without any separator (...][...), so the entire output is one logical line -- unless a U+2028/U+2029 character inside a string body trips splitlines(), which splits mid-JSON-string and yields an unterminated array fragment. Switch to 'gh issue list --json number,title --state open --limit 100000' which returns a single well-formed JSON array and already excludes pull requests, removing both pitfalls in one go. Verified locally: the script now fetches 1355 open issues and runs the single-issue and --scan modes without errors. Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| close_duplicate_issues.py | ||
| scan_keywords.py | ||