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
1, example/gateway
the gateway code it is work, otherwise will show me {"error":"malformed header: missing HTTP content-type","code":2,"message":"malformed header: missing HTTP content-type"}
or {"msg":"Hello john"}
2, example/http/rpccli, it is work. 2023/08/15 15:10:34 err:<nil> response:&go_micro_srv_greeter.Response{Msg:"Hello call grpc server by http client", XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}
when micro.Server(grpcs.NewServer())
1, example/gateway, it is work.
always show me {"msg":"Hello john"}
2, example/http/rpccli, it is not work. 2023/08/15 15:25:40 err:{"id":"go.micro.client.transport","code":500,"detail":"readfrom tcp 127.0.0.1:59544-\u003e127.0.0.1:9090: write tcp 127.0.0.1:59544-\u003e127.0.0.1:9090: wsasend: An existing connection was forcibly closed by the remote host.","status":"Internal Server Error"} response:&go_micro_srv_ greeter.Response{Msg:"", XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
example/greeter/srv/main.go
how to do make both work?
when delete
micro.Server(grpcs.NewServer())
1, example/gateway
the gateway code it is work, otherwise will show me
{"error":"malformed header: missing HTTP content-type","code":2,"message":"malformed header: missing HTTP content-type"}
or
{"msg":"Hello john"}
2, example/http/rpccli, it is work.
2023/08/15 15:10:34 err:<nil> response:&go_micro_srv_greeter.Response{Msg:"Hello call grpc server by http client", XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}
when
micro.Server(grpcs.NewServer())
1, example/gateway, it is work.
always show me
{"msg":"Hello john"}
2, example/http/rpccli, it is not work.
2023/08/15 15:25:40 err:{"id":"go.micro.client.transport","code":500,"detail":"readfrom tcp 127.0.0.1:59544-\u003e127.0.0.1:9090: write tcp 127.0.0.1:59544-\u003e127.0.0.1:9090: wsasend: An existing connection was forcibly closed by the remote host.","status":"Internal Server Error"} response:&go_micro_srv_ greeter.Response{Msg:"", XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}
Beta Was this translation helpful? Give feedback.
All reactions