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
The root cause of the error seems to be the module golang.org/x/net/trace. Its init() registers a handler to the same URL (e.g. /debug/requesets). Therefore importing the module more than twice causes the above panic.
I'm not sure here is a suitable place for reporting the problem. I'd like to hear gRPC developers' opinion. Should I go to the issue tracker of golang? Or is a workaround for this problem known?
How do you import grpc twice? Is vendoring involved?
rakyll
changed the title
Google Vision: Error happens when a program imports grpc more than twice
vision: Error happens when a program imports grpc more than twice
Aug 3, 2017
The below error happened when I build a program that imports grpc twice (indirectly).
The root cause of the error seems to be the module
golang.org/x/net/trace
. Its init() registers a handler to the same URL (e.g. /debug/requesets). Therefore importing the module more than twice causes the above panic.I'm not sure here is a suitable place for reporting the problem. I'd like to hear gRPC developers' opinion. Should I go to the issue tracker of golang? Or is a workaround for this problem known?
ref: grpc/grpc-go#566
The text was updated successfully, but these errors were encountered: