{"record":{"id":"ef3b7aa800b4cd40","repo":"sipeed/picoclaw","slug":"table-must-have-at-least-header-and-separator-rows","errorCode":null,"errorMessage":"table must have at least header and separator rows","messagePattern":"table must have at least header and separator rows","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/teams_webhook/teams_webhook.go","lineNumber":314,"sourceCode":"\t\tlastEnd = match[1]\n\t}\n\n\t// Text after the last table\n\tif lastEnd < len(content) {\n\t\tsegments = append(segments, contentSegment{\n\t\t\tcontent: content[lastEnd:],\n\t\t\tisTable: false,\n\t\t})\n\t}\n\n\treturn segments\n}\n\n// parseMarkdownTable converts a markdown table string to an Adaptive Card Table element.\nfunc parseMarkdownTable(tableStr string) (adaptivecard.Element, error) {\n\tlines := strings.Split(strings.TrimSpace(tableStr), \"\\n\")\n\tif len(lines) < 2 {\n\t\treturn adaptivecard.Element{}, fmt.Errorf(\"table must have at least header and separator rows\")\n\t}\n\n\t// Track header content length per column for width calculation\n\tvar headerLengths []int\n\n\t// Parse all rows (header + data rows, skip separator)\n\tvar allRows [][]adaptivecard.TableCell\n\tfor i, line := range lines {\n\t\t// Skip separator row (contains only |, -, :, and spaces)\n\t\tif i == 1 && isSeparatorRow(line) {\n\t\t\tcontinue\n\t\t}\n\n\t\tcells := parseTableRow(line)\n\t\tif len(cells) == 0 {\n\t\t\tcontinue\n\t\t}\n","sourceCodeStart":296,"sourceCodeEnd":332,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/teams_webhook/teams_webhook.go#L296-L332","documentation":"Error \"table must have at least header and separator rows\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/teams_webhook/teams_webhook.go:314 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}