Skip to content

资源管理-统一搜索报错 502 Request failed with status code 502 #21

Description

@cuiweijie241

页面报错:Request failed with status code 502
日志:
2023-04-28 11:32:38 file=middleware/permission.go:27 level=info msgID[15f105f4-f1e9-45dd-a864-fed0cd12e3bd] info:admin method:GET path:/api/v1/cmdb/search
2023/04/28 11:32:38 http: panic serving 127.0.0.1:56686: runtime error: invalid memory address or nil pointer dereference
goroutine 86 [running]:
net/http.(*conn).serve.func1(0xc000364000)
/usr/local/go/src/net/http/server.go:1824 +0x153
panic(0x170c280, 0x3ec2540)
/usr/local/go/src/runtime/panic.go:971 +0x499
fiy/common/middleware.CustomError.func1(0xc00009e4b0)
/zysz/fiy/common/middleware/customerror.go:45 +0x613
panic(0x170c280, 0x3ec2540)
/usr/local/go/src/runtime/panic.go:965 +0x1b9
github.com/olivere/elastic/v7.(*Client).PerformRequest(0x0, 0x1c0e208, 0xc0000ba000, 0x19e401a, 0x4, 0xc000428340, 0x1b, 0xc002764f60, 0x16fd360, 0xc002764f90, ...)
/root/go/pkg/mod/github.com/olivere/elastic/v7@v7.0.24/client.go:1312 +0xed
github.com/olivere/elastic/v7.(*SearchService).Do(0xc002a51360, 0x1c0e208, 0xc0000ba000, 0xc000639340, 0x1, 0x1)
/root/go/pkg/mod/github.com/olivere/elastic/v7@v7.0.24/search.go:627 +0x13c
fiy/pkg/es.EsClientType.Query(0x0, 0x1660260, 0xc002770450, 0x0, 0x1, 0xc000766025, 0x1, 0x4)
/zysz/fiy/pkg/es/es.go:78 +0x416
fiy/app/cmdb/apis/search.GetData(0xc00009e4b0)
/zysz/fiy/app/cmdb/apis/search/search.go:36 +0x185
.....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions