Closed JulianXin216 closed 3 years ago
The ServiceNotFoundError
means that the service actions is not registered.
You can use moleculer-repl to see what actions are available/exposed.
Does the service have a version? Then you need to specify it at the beginning of the service name
aliases:{
"abc":"v1.status.systems",
"count": "v1.basic.count"
},
Does the service have a version? Then you need to specify it at the beginning of the service name
aliases:{ "abc":"v1.status.systems", "count": "v1.basic.count" },
No version. After I cleaned the node_modules and reinstalled the modules. It works now. Maybe something wrong with my computer.
I am learning to use moleculer. I set the aliaes ine the routes setting .
But the address
http://localhost:3010/api/abc
got an error;I did somthing wrong?
I used VSCode to debug.
moleculer version:0.14.11 moleculer-web version:0.9.1