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

serch 对账号管理和查询有问题,容器日志有错误记录 #65

Closed
linkagt opened this issue Dec 25, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@linkagt
Copy link

linkagt commented Dec 25, 2022

2022-12-25T08:52:29.403Z INFO search service/search.go:230 json: cannot unmarshal string into Go struct field Department.departments.attr of type int {"Request-Id": "3yvdcujeakg0-f4ZM66PlX1WC"}

2022-12-25T08:52:29.403Z INFO gin/logger.go:50 [GIN] {"Request-Id": "3yvdcujeakg0-f4ZM66PlX1WC", "latency": 0.007911626, "clientIP": "10.233.92.64", "method": "GET", "statusCode": 400, "errorMessage": "", "bodySize": 157, "path": "/api/v1/search/user?query=%7Bquery%28departmentID%3A%221%22%2Cname%3A%22%22%2Cpage%3A1%2Csize%3A10%29%7Busers%7Bid%2Cphone%2Cposition%2Cemail%2Cname%2CuseStatus%2Cdepartments%7Bid%2Cname%2Cattr%7D%2Cleaders%7Bid%2Cname%2Cattr%7D%7D%2Ctotal%7D%7D"}

2022-12-25T08:52:30.495Z INFO router.elastic logger/pack_logr.go:38 POST http://elasticsearch-data-0.elasticsearch-data.lowcode.svc.cluster.local:9200/user/_search [status:200, request:0.011s]

2022-12-25T08:52:30.495Z ERROR search.user service/user.go:193 search user {"error": "json: cannot unmarshal string into Go struct field Department.departments.attr of type int"}

github.com/quanxiang-cloud/search/internal/service.(*user).resolve

/build/internal/service/user.go:193

github.com/graphql-go/graphql.resolveField

/build/vendor/github.com/graphql-go/graphql/executor.go:649

github.com/graphql-go/graphql.executeSubFields

/build/vendor/github.com/graphql-go/graphql/executor.go:300

github.com/graphql-go/graphql.executeFields

/build/vendor/github.com/graphql-go/graphql/executor.go:278

github.com/graphql-go/graphql.executeOperation

/build/vendor/github.com/graphql-go/graphql/executor.go:189

github.com/graphql-go/graphql.Execute.func2

/build/vendor/github.com/graphql-go/graphql/executor.go:78

2022-12-25T08:52:30.495Z INFO search service/search.go:230 json: cannot unmarshal string into Go struct field Department.departments.attr of type int {"Request-Id": "3yvdcwlw9jpc-C7tA5GG6cLx0"}

2022-12-25T08:52:30.495Z INFO gin/logger.go:50 [GIN] {"Request-Id": "3yvdcwlw9jpc-C7tA5GG6cLx0", "latency": 0.016241543, "clientIP": "10.233.92.64", "method": "GET", "statusCode": 400, "errorMessage": "", "bodySize": 157, "path": "/api/v1/search/user?query=%7Bquery%28departmentID%3A%221%22%2Cname%3A%22%22%2Cpage%3A1%2Csize%3A10%29%7Busers%7Bid%2Cphone%2Cposition%2Cemail%2Cname%2CuseStatus%2Cdepartments%7Bid%2Cname%2Cattr%7D%2Cleaders%7Bid%2Cname%2Cattr%7D%7D%2Ctotal%7D%7D"}

@kevinlee607 kevinlee607 added the bug Something isn't working label Apr 7, 2023
@kevinlee607
Copy link
Member

fixed in new release v2.1.0-rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants