Skip to content
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

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

Open
cuiweijie241 opened this issue Apr 28, 2023 · 0 comments

Comments

@cuiweijie241
Copy link

页面报错: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/[email protected]/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/[email protected]/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
.....

@cuiweijie241 cuiweijie241 changed the title 资源管理-统一搜获报错 502 Request failed with status code 502 资源管理-统一搜索报错 502 Request failed with status code 502 Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant