Questions tagged [moleculer]

Moleculer is a progressive microservices framework for Node.js

Moleculer is a progressive microservices framework for Node.js. It helps you to build efficient, reliable & scalable services. Moleculer provides many features for building and managing your microservices.

84 questions
0
votes
0 answers

Refactor and upgrade old typescript code - moleculer service - property does not exist on type

We have a 5 years old nodejs source code which must be upgraded to the latest nodejs technology, packages, typescript compiler. We found a piece of code which uses the moleculer nodejs package, and a code looks as: broker.createService({ name:…
Zoltan Hernyak
  • 989
  • 1
  • 14
  • 35
0
votes
0 answers

How can I build a composite structure(minerals) in the materials studio?

I wanna make a composite structure including two oxide minerals, in common surface in materials studio software. I can't build a comosite structure of two or multi minerals with a common surface. The modeled surface should be a composition of TiO2…
0
votes
1 answer

Moleculer Framework API code is not able to use the file from request body (form-data). returns undefined

I am new to the Moleculer framework and need to upload a file from an API request body to MongoDB using an action handler. I have been able to upload files using Multer with Express, but I need to use only the Moleculer framework. When I run the…
0
votes
2 answers

Selectively filter debug logs for Moleculer

I have healthcheck actions within my services that are called to determine whether the service is up. Due to the frequent calls from automated systems, there are a lot of noise in the debug logs. Is there a way to filter out the system generated…
ko5win
  • 17
  • 4
0
votes
0 answers

When I test socketio in moleculer get `404 Not Found` error

I created a socketio demo as below: services/socketiodemo.service.js "use strict"; const ApiGateway = require("moleculer-web"); // require Socket.IO and Moleculer's Socket.IO mixin const SocketIOService = require("moleculer-io"); module.exports…
qg_java_17137
  • 3,310
  • 10
  • 41
  • 84
0
votes
1 answer

`this.adapter` is `undefined`. when execute the action in moleculer action

I have created a moleculer project as below: https://codesandbox.io/s/8d5xy3 now I changed default database to mongodb/mongoose: but when I run products.service.js's action: createProduct, I get 500 error: { "name": "MoleculerError", "message":…
lme
  • 59
  • 3
  • 17
0
votes
1 answer

MolecularJS :: Correlation details :: how to pass logged in user to action method

I am new to molecular Js, can someone please help me in understanding ,how to pass the context of current request in action handlers? to be more specific, In authenticate method of API gateway I am validating token and decoding it. and I need this…
0
votes
1 answer

Moleculer JS "Redis-pub client is disconnected" every 10 minutes

my application (Node.js) is using moleculer for microservices and redis as transporter. However, I find that the application will have this log Redis-pub client is disconnected every 10 minutes, then reconnect with the log Redis-pub client is…
Saligia
  • 147
  • 1
  • 9
0
votes
0 answers

Is it possible to use the node library @ibm-cloud/cloudant as a mixin in Moleculer framework?

I'm using moleculer microservices framework and IBM Cloudant database. Is it possible to use the node library @ibm-cloud/cloudant as a mixin so that I can inherit all the methods in the services? Thank you
0
votes
0 answers

Websocket event call issue in moleculer js

I am not able to call the websocket event in moleculer js socket connection. My socket connection is established successfully but When I trigger the event it gives me some error like Error: { message: "Converting circular structure to JSON\n -->…
0
votes
0 answers

Mock actions after creating service in moleculer microservice Nodejs

I want to test an action. Inside that service action, I am calling another service action. code looks like below describe("Test auth service", () => { describe("action", ()=>{ let broker = new ServiceBroker({ logger: false, …
abinas patra
  • 359
  • 3
  • 21
0
votes
1 answer

How to invoke an action of its own service as soon as the service is up in moleculer js?

I am working in moleculer js, in which there is a requirement to call action/handler function of its own service to prepopulate the values from the DB and ecternal API call. If I do using started() method, service throwing below error. [Runner]…
jolly
  • 75
  • 10
0
votes
1 answer

Nestjs as API gateway + Moleculer as microservice

I'm very new in microservices, I was a wonder to know that is there any way to call a moleculer action from nestjs gateway?
0
votes
3 answers

How to deploy molecular project without docker in production?

How should I deploy a molecular microservice project on the server without using docker and Kubernetes? I pull my updated code into a server and run the npm run dev command project run as per aspected. But now I want to set up pm2 for this project…
Amit Patel
  • 167
  • 2
  • 12
0
votes
1 answer

Molecular Gateway white list ~node service

I need to white list all request from ~node service which are help to draw Molecular service UI How can i do this whitelist: ['**'],
Sachinda Nirmal
  • 2,133
  • 1
  • 8
  • 9