{"record":{"id":"5d07c4bda20c89ee","repo":"fish2018/pansou","slug":"listitemsdata-5d07c4","errorCode":null,"errorMessage":"listItemsData 缺少数组","messagePattern":"listItemsData 缺少数组","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugin/zlxapp/zlxapp.go","lineNumber":186,"sourceCode":"\t}\n\tif lastErr == nil {\n\t\tlastErr = fmt.Errorf(\"请求失败\")\n\t}\n\treturn nil, lastErr\n}\n\nfunc parseListItems(body []byte) ([]searchItem, error) {\n\tmarkerIndex := bytes.Index(body, listItemsMarker)\n\tif markerIndex < 0 {\n\t\treturn nil, fmt.Errorf(\"未找到 listItemsData\")\n\t}\n\n\tarrayStart := markerIndex + len(listItemsMarker)\n\tfor arrayStart < len(body) && body[arrayStart] != '[' {\n\t\tarrayStart++\n\t}\n\tif arrayStart >= len(body) {\n\t\treturn nil, fmt.Errorf(\"listItemsData 缺少数组\")\n\t}\n\n\tarrayEnd, err := findJSONArrayEnd(body, arrayStart)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar items []searchItem\n\tif err := jsonutil.Unmarshal(body[arrayStart:arrayEnd+1], &items); err != nil {\n\t\treturn nil, err\n\t}\n\treturn items, nil\n}\n\nfunc findJSONArrayEnd(data []byte, start int) (int, error) {\n\tdepth := 0\n\tinString := false\n\tescaped := false","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/fish2018/pansou/blob/beaa56133755a548ebc51b090b3816e2ae044aa6/plugin/zlxapp/zlxapp.go#L168-L204","documentation":"Structure guard in zlxapp parseListItems: the marker was found but no '[' appears after it before end-of-body. The embedded listItemsData declaration is present but its array payload is absent/malformed — a truncated or reformatted page.","triggerScenarios":"Thrown at plugin/zlxapp/zlxapp.go:186 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry for truncated responses","Update the array-locating logic if the JS embedding format changed"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"beaa56133755a548ebc51b090b3816e2ae044aa6","analyzedAt":"2026-09-07T00:31:18.025Z","contentChangedAt":"2026-09-07T00:31:18.025Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}