Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:53
    erfanium commented #627
  • Dec 04 22:06
    erfanium edited #627
  • Dec 04 22:06
    erfanium edited #627
  • Dec 04 22:03
    erfanium commented #627
  • Dec 04 21:13
    icebob commented #627
  • Dec 04 21:05
    erfanium edited #627
  • Dec 04 21:03
    erfanium edited #627
  • Dec 04 21:01
    erfanium edited #627
  • Dec 04 21:01
    erfanium opened #627
  • Dec 03 21:02

    icebob on next

    Add call middleware type Merge pull request #604 from sh… Added Type Definition disableVe… and 7 more (compare)

  • Dec 03 21:02
    icebob closed #626
  • Dec 03 21:02
    icebob commented #626
  • Dec 03 14:56
    shawnmcknight commented #626
  • Dec 03 14:41
    coveralls commented #626
  • Dec 03 14:41
    coveralls commented #626
  • Dec 03 14:41
    coveralls commented #626
  • Dec 03 14:35
    glenn-p-ryan synchronize #626
  • Dec 03 14:34
    glenn-p-ryan commented #626
  • Dec 03 08:02
    icebob commented #214
  • Dec 03 02:32
    ujwal-setlur commented #214
vctqs1
@vctqs1
Hello all, I just run npm i moleculer-cli -g and after i run moleculer and see that bash: moleculer: command not found, Please help me.
I use MacOS
vctqs1
@vctqs1
Kerhael
@Kerhael
Hi everyone,
Have any of you already tried to send a zip file from moleculer server back to client?
I tried using JSZip but all I get in client is something like "{"data":{"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":true,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":true,"defaultEncoding":"utf8","length":65313,"writing":true,"corked":0,"sync":false,"bufferProcessing":false,"writelen":38,"bufferedRequest":{"chunk":{"type":"Buffer","data":[255,216,255,224,0,16,74"
Correct zip file is written server-side, though.
Morten Nielsen
@morkeleb
Is there a configuration option to have the broker crash/quit after its been disconnected from the transport for more than X time or attempts or something similar? We've had a service that was disconnected but the process was still running so we couldnt see the issue from a process level.
Amr Essam
@amroessam
@HighSoftWare96 it's a very hacky way like that, we're using bind to add the entire context to the function, so when you do this.broker.call inside the function it still works
dyabala
@dyabala
Hello everyone, I'm new to moleculer and I got a question to ask that if "moleculer-db-adapter-mongoose" supports middleware hooks in mongoose ? Thank you.
Eric Lai
@yslai95
Hello everyone, I have a loop to call on another service ( 100 loop), which cause an Request timed out. it doesn't have any issue running on my computer but on server.
Any recommendation/solutions on this? Thank you
neer5
@neer5
Hi, I want to use mocha for test cases.
const broker = new ServiceBroker();
const projectClass = new ProjectsService(broker);
I gives warning "Service 'projects.stop' is not registered"
Help please
André Mazayev
@AndreMaz
@dyabala is this (https://moleculer.services/docs/0.13/moleculer-db.html#Data-Manipulation) what you want ?
@yslai95 1) increase the requestTimeoutin service broker options (https://moleculer.services/docs/0.13/broker.html) 2) create batches
@neer5 what is the ProjectsService? To create a service you should do const service = broker.createService(/* service schema goes here */)
playerthong
@playerthong
Hi @AndreMaz @icebob
Now I'm checking moleculer-prometheus. It seems can not working with grafana
ozzy3141
@ozzy3141
Hi! is there a way to route API requests to a particular service each time when multiple services of the same kind are spun up. The routing should happen based on request context. I was thinking of using a custom strategy for the load balancer but I'm not sure if it has access to the request context (especially request parameters).
ozzy3141
@ozzy3141
@AndreMaz thank you!
manjunathrp
@manjunathrp
hello can I get any sample code to make DB connection using moleculer framework??
vctqs1
@vctqs1
Hello all, how to use transaction in moleculer-db-adapter-mongo. I find in document but don't see any config here?
ashutosh21414
@ashutosh21414

@manjunathrp , in your main api service use something like this. Note: DbService is important parameter to pass in mixins.

mixins: [ApiGateway,DbService],
adapter:new MongooseAdapter(process.env.CORE_MONGO_DB_URI),

ashutosh21414
@ashutosh21414
Hi people, can we use cache.clean(**block**); this type of parameter to clear cache.
?
vishalgadhave
@vishalgadhave
Hi All, I am new to Molecular library
Can we use molecular apis with Java ?
Leandro Hoffmann
@lehno
@vishalgadhave if you have a moleculer api, any language can call it
cryps
@cryps
Hey Guys, there are anyone that have an example how to use websockets usage integrated with moleculerjs? I would like to implement a real time notification system using moleculerjs. So, everytime that a new record is created or event changed, I would like to notify the active users with those changes. Many thanks for your help.
cryps
@cryps
I tried to use this lib - moleculer-io - but with no success...
Leandro Hoffmann
@lehno
I'm using it, it works perfect
André Mazayev
@AndreMaz
You have a very simple example over here
But moleculer io is a better option because it has a lot of features
cryps
@cryps
hi guys, many thanks for your help. I'll have a look on that example. :)
cryps
@cryps
it's working now... I was doing a naive mistake... anyway many thanks @AndreMaz for your kindly help.
OOI JIA YI
@jyooi
Hi guys, I am new to this community, may I know is that any good example to refer as to create custom transporter with AWS SNS?
Bertoncelli Giovanni
@HighSoftWare96
Hi guys, I'm using Sequelize Db Adapter to create a User model. Is there a good way to hash the password inside the model so when I query the model I get always the password comparison right and when I create a new User the password is hashed?
I'm trying to find an hook or something in sequelize... hashing the password I receive from the client's queries can be painful because there can be very complicated queries...
neer5
@neer5

Hi,
i need to use something like this

 projects.forEach(async project => {
        throw new MoleculerError('Testing....');
      });

but it shows "UnhandledPromiseRejectionWarning".
can anyone help?

ilakshmikanthp
@ilakshmikanthp
Hi, I have two instances. example one is organisation and other students attendance. I want to use the organisation entities relations inside student without creating duplicate entities in student instance. is it possible and how?
ashutosh21414
@ashutosh21414
Has anyone ever tried writing test cases?
Shay Erlichmen
@erlichmen
Hi, as far I know "middlewares" is not a real word (like software, hardware, etc) but you can see it all over the code #nitpicking
Ken Gregory
@kgregory
@erlichmen I guess we should delete the code and start over
Shay Erlichmen
@erlichmen
@kgregory do what ever you want, just point a
@kgregory grammar mistake. Keep in mind for your next repo
Ken Gregory
@kgregory
@erlichmen if only there were a way to propose changes and implement them... now that would be something!
patrice70
@patrice70
@cryps Look for 'resgate.io', do realtime update with browser and notificaiton, also do security.
Shay Erlichmen
@erlichmen
@kgregory I'm willing to do a fix for this supporting both syntaxes for now and display a deprecate warning for the "wrong" syntax but I thought that gitter is a better place to disuccess such a change before nosing the issues.
Georgeena Thomas
@georgeenathomas
Hi, has anyone here worked with the retry mechanism ?
neer5
@neer5
@ashutosh21414 yes. with jest
huu4707
@huu4707
Hi, res.send is not a function, and res.end doesn't accept object type. how to return object type
Sandeep Gupta
@iamsandeepgupta
can anyone tell me how can i implement passport with moleculer
or a small example