You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic: The unary server interceptor was already set and may not be reset
Additional Information
No response
Logs
2022-07-13 19:13:43.840 error ******[-]: panic: The unary server interceptor was already set and may not be reset.
/usr/local/go/src/runtime/panic.go:844
google.golang.org/grpc.UnaryInterceptor.func1
/***/go/pkg/mod/google.golang.org/[email protected]/server.go:382
google.golang.org/grpc.(*funcServerOption).apply
/***/go/pkg/mod/google.golang.org/[email protected]/server.go:201
google.golang.org/grpc.NewServer
/***/go/pkg/mod/google.golang.org/[email protected]/server.go:564
github.com/HXSecurity/DongTai-agent-go/core/grpc/newServer.NewServer
/***/go/pkg/mod/github.com/!h!x!security/!dong![email protected]/core/grpc/newServer/replacement.go:26
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Version
1.8.1
Installation Type
Official Docker Compose
Service Name
DongTai-Core
Describe the details of the bug and the steps to reproduce it
在项目中已经使用了grpc一元拦截器(grpc.UnaryInterceptor)的情况下,dongtai agent再注册拦截器会导致报错
代码路径:
https://github.com/HXSecurity/DongTai-agent-go/blob/v0.4.2/core/grpc/newServer/replacement.go#L25
报错:
Additional Information
No response
Logs
The text was updated successfully, but these errors were encountered: