0

I created helloword micro service like tutorial in https://github.com/go-micro/cli , but this server use gRPC protocol. I have tried use API like tutorial in https://github.com/go-micro/api , but file "api" was not created. I copied this file from a colleague. Everything starts, but when I request the link, I get an error 500 bad request: $ curl http://localhost:8080/helloworld/call

{"id":"go.micro.api","code":500,"detail":"service not found","status":"Internal Server Error"}

If using gRPC - it's work :

$ go-micro call helloworld Helloworld.Call '{"name": "John"}'
{"msg":"Hello John"}

Changed the link. Created new project. Nothing helps...

eglease
  • 2,445
  • 11
  • 18
  • 28
John
  • 9
  • 1

0 Answers0