mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-13 03:59:12 +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> |
||
|---|---|---|
| .. | ||
| codeql | ||
| ISSUE_TEMPLATE | ||
| observatory | ||
| screenshots | ||
| scripts | ||
| workflows | ||
| dependabot.yaml | ||
| deploy-to-aws.png | ||
| FUNDING.yml | ||
| pull_request_template.md | ||
| template.yaml | ||