Closed oloohezbon closed 4 years ago
Please answer the following questions for yourself before submitting an issue.
When you configure moleculer java to use the same transport as moleculer js, molecular js crashes. with below error.
I was expecting the two to work together. I see moleculer java discovers the moleculer js services but moleculer js crushes during discovery.
index.js:1384 const basePath = addSlashes(_.isString(service.settings.rest) ? service.settings.rest : serviceName.replace(/./g, "/")); TypeError: Cannot read property 'rest' of undefined
Please provide detailed steps for reproducing the issue.
Java moleculer service; `ServiceBrokerConfig cfg = new ServiceBrokerConfig();
NatsTransporter transporter = new NatsTransporter("nats://localhost:4222"); //transporter.setVerbose(true); //transporter.setDebug(true); //transporter.setNoEcho(true); cfg.setTransporter(transporter); ServiceBroker broker = new ServiceBroker(cfg); ApiGateway gateway = new ApiGateway(); Route route = gateway.addRoute(new Route("/fer")); route.addToWhiteList("*"); broker.createService(new NettyServer()); broker.createService(gateway); broker.createService(new GreeterService()); broker.start();`
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Current Behavior
When you configure moleculer java to use the same transport as moleculer js, molecular js crashes. with below error.
Expected Behavior
I was expecting the two to work together. I see moleculer java discovers the moleculer js services but moleculer js crushes during discovery.
Failure Information
index.js:1384 const basePath = addSlashes(_.isString(service.settings.rest) ? service.settings.rest : serviceName.replace(/./g, "/")); TypeError: Cannot read property 'rest' of undefined
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Reproduce code snippet
Java moleculer service; `ServiceBrokerConfig cfg = new ServiceBrokerConfig();