Skip to content

Error bug #268

@nikulinsoidet

Description

@nikulinsoidet

vulnapi scan openapi https://api.example.ru/openapi.json
100% |████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (85/85) panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.deferwrap1()
/home/runner/go/pkg/mod/go.opentelemetry.io/otel/[email protected]/trace/span.go:467 +0x2c
go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End(0x1400027da40, {0x0, 0x0, 0x14000002380?})
/home/runner/go/pkg/mod/go.opentelemetry.io/otel/[email protected]/trace/span.go:506 +0xa04
panic({0x1037db660?, 0x14006809788?})
/opt/hostedtoolcache/go/1.24.2/x64/src/runtime/panic.go:792 +0x124
go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.deferwrap1()
/home/runner/go/pkg/mod/go.opentelemetry.io/otel/[email protected]/trace/span.go:467 +0x2c
go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End(0x140005181e0, {0x0, 0x0, 0x14000002380?})
/home/runner/go/pkg/mod/go.opentelemetry.io/otel/[email protected]/trace/span.go:506 +0xa04
panic({0x1037db660?, 0x14006809788?})
/opt/hostedtoolcache/go/1.24.2/x64/src/runtime/panic.go:792 +0x124
github.com/cerberauth/vulnapi/scan.(*Scan).Execute(0x14000412680, {0x1038572c8?, 0x14000355230?}, 0x14000043bc8)
/home/runner/go/pkg/mod/github.com/cerberauth/[email protected]/scan/scan.go:101 +0x858
github.com/cerberauth/vulnapi/cmd/scan.NewOpenAPIScanCmd.func1(0x140000cce00?, {0x14000338a50?, 0x4?, 0x1030a9657?})
/home/runner/go/pkg/mod/github.com/cerberauth/[email protected]/cmd/scan/openapi.go:97 +0x900
github.com/spf13/cobra.(*Command).execute(0x14000360308, {0x14000338a20, 0x1, 0x1})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1019 +0x810
github.com/spf13/cobra.(*Command).ExecuteC(0x140001fef08)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1071
github.com/cerberauth/vulnapi/cmd.Execute({0x103620d20?, 0x14000002380?})
/home/runner/go/pkg/mod/github.com/cerberauth/[email protected]/cmd/root.go:59 +0x24
main.main()
/home/runner/go/pkg/mod/github.com/cerberauth/[email protected]/main.go:10 +0x2c

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions