-
Notifications
You must be signed in to change notification settings - Fork 67
Description
http://118.122.xx.xx:8882 302/s 8552/52955 found: 2 [===========>-------------------------------------------------------------] 16 % 28s
panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0
goroutine 49 [running]:
encoding/json.(*encodeState).marshal.func1()
$GOROOT/src/encoding/json/encode.go:326 +0x6e
panic({0xe4f0e0, 0xc004348660})
$GOROOT/src/runtime/panic.go:884 +0x213
encoding/json.mapEncoder.encode({0xdba200?}, 0xc001416080, {0xe609c0?, 0xc01ebbcd10?, 0x6?}, {0xd?, 0x0?})
$GOROOT/src/encoding/json/encode.go:798 +0x750
encoding/json.structEncoder.encode({{{0xc010a41900?, 0x34?, 0x2?}, 0xc0108f9620?}}, 0xc001416080, {0xe81ce0?, 0xc01ebbcc60?, 0x6dd6fe?}, {0x0, 0x1})
$GOROOT/src/encoding/json/encode.go:759 +0x1f4
encoding/json.ptrEncoder.encode({0x0?}, 0xc001416080, {0xe48fc0?, 0xc01ebbcc60?, 0xe48fc0?}, {0xbb?, 0x9f?})
$GOROOT/src/encoding/json/encode.go:943 +0x21c
encoding/json.(*encodeState).reflectValue(0xc01e02fda0?, {0xe48fc0?, 0xc01ebbcc60?, 0x7?}, {0x80?, 0x91?})
$GOROOT/src/encoding/json/encode.go:358 +0x78
encoding/json.(*encodeState).marshal(0x6c2e6f6675692e69?, {0xe48fc0?, 0xc01ebbcc60?}, {0x0?, 0x0?})
$GOROOT/src/encoding/json/encode.go:330 +0xfa
encoding/json.Marshal({0xe48fc0, 0xc01ebbcc60})
$GOROOT/src/encoding/json/encode.go:161 +0xe5
github.com/chainreactors/parsers.(*SprayResult).ToJson(...)
pkg/mod/github.com/chainreactors/parsers@v0.0.0-20250605044448-6bc270f12c0e/spray.go:317
github.com/chainreactors/spray/core.(*Runner).Output(0xc00f115b80, 0xc01ebbba20)
/home/runner/work/spray/spray/core/runner.go:433 +0x267
github.com/chainreactors/spray/core.(*Runner).OutputHandler.func2()
/home/runner/work/spray/spray/core/runner.go:482 +0x29
created by github.com/chainreactors/spray/core.(*Runner).OutputHandler
/home/runner/work/spray/spray/core/runner.go:475 +0x97