-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime error: index out of range
error encountered sometimes when using sys.http.html2text
#324
Comments
Debug logs:
|
runtime error: index out of range
error when using sys.http.html2text
runtime error: index out of range
error encountered sometimes when using sys.http.html2text
just fyi, that happens usually at ( There was a fix pushed at #153 to update to the latest version of tablewriter containing a fix for this issue, but, iirc, that did fix only one case scenario ( For completeness, some code to reproduce this package main
import (
"os"
"github.com/olekukonko/tablewriter"
)
func main() {
data := [][]string{
{"A", "The Good", "500", "500"},
{"B", "The Very very Bad Man", "288", "500"},
{"C", "The Ugly", "120", "500"},
{"D", "The Gopher", "800", "500"},
}
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"H0", "H1", "H2", "H3"})
// table.SetFooter([]string{"F0", "F1", "F2", "F3"}) // works
// table.SetFooter([]string{"F0", "F1", "F2"}) // works
table.SetFooter([]string{"F0", "F1"}) // panics
for _, v := range data {
table.Append(v)
}
table.Render() // Send output
} |
pushed a pr upstream that should fix this - olekukonko/tablewriter#228 |
Steps to reproduce the problem:
sys.http.html2text
along with search tool.runtime error: index out of range
error is encountered forsys.http.html2text
tool call.panic: runtime error: index out of range [11] with length 11
Note - On retry , this error is not seen and script is able to return the search results successfully.
The text was updated successfully, but these errors were encountered: