-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
service not found while using api gateway #2587
Comments
Hmm I'm not exactly sure, haven't used the API a lot. The service not found would be a registry issue. Either not calling the correct service, or the service has not been registered. You could try to use the client code, instead of cli, |
I might need some hints on how to run go-micro/api, the api gateway, according to README of go-micro/api, just install and run it, without any steps / configuration / codes on service side |
After some debugging, I have figured out that registering endpoints manually by code might be the necessary step, because when handling the request it will try to first match the endpoints of the default router, and then go to another way to resolve the service name and endpoint name, and in this process it use the METHOD value as the endpoint name, then report some error. (for |
I think this issue can be closed now. |
I am glad you managed to find a solution. I agree that auto registration would be best. If you ever find some time to dig into it contributions would be very welcome. |
It does not matter, thanks for your efforts on go-micro, really great repo. I will try to commit a pull request |
solve it with fixing endpoint name extraction when no endpoint matched, see #2592 |
request: http://localhost:8080/helloworld/call
response: {"id":"go.micro.api","code":500,"detail":"service not found","status":"Internal Server Error"}
The Detailed reproducing step are posted in the issue in go-micro/api repository
Am I missing some steps or config?
The text was updated successfully, but these errors were encountered: