Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Auto registration issues, need manual registration #3

@leoujz

Description

@leoujz

request: http://localhost:8080/helloworld/call
response: {"id":"go.micro.api","code":500,"detail":"service not found","status":"Internal Server Error"}

Am I missing some steps or config?

Environments:

go version go1.18.7 linux/arm64
go-micro version v1.1.4
go install github.com/go-micro/api/cmd/api@latest

Reproducing steps:

create a service

  • go-micro new service helloworld
  • cd helloworld && make init proto update tidy
  • go-micro run

test the service

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

response
{"msg":"Hello John"}

run api and test

  • api
    2022-11-02 09:20:38 file=http/http.go:90 level=info HTTP API Listening on [::]:8080
  • request
    http://localhost:8080/helloworld/call
  • response
    {"id":"go.micro.api","code":500,"detail":"service not found","status":"Internal Server Error"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions