Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jan 21 17:00
    icebob closed #858
  • Jan 21 17:00

    icebob on master

    fix: disableHeartbeatChecks sho… same opts issue with "disableOf… Merge pull request #858 from ke… (compare)

  • Jan 21 16:54
    icebob synchronize #858
  • Jan 21 16:32
    keyvhinng opened #858
  • Jan 21 08:13
    teezzan commented #100
  • Jan 20 12:53
    JordanPawlett edited #856
  • Jan 20 12:52
    JordanPawlett opened #857
  • Jan 20 12:42
    JordanPawlett opened #856
  • Jan 18 16:57
    slinkardbrandon commented #855
  • Jan 18 16:47
    icebob labeled #855
  • Jan 18 16:47
    icebob labeled #855
  • Jan 18 16:46
    icebob commented #855
  • Jan 18 16:39
    icebob closed #854
  • Jan 18 16:32

    icebob on master

    Wrap decryption code in a try b… log the error if decryption fai… Merge pull request #853 from ci… (compare)

  • Jan 18 16:32
    icebob closed #853
  • Jan 16 12:27
    sskhokhar commented #512
  • Jan 15 12:13
    slinkardbrandon edited #855
  • Jan 14 21:32
    slinkardbrandon synchronize #855
  • Jan 14 20:43
    slinkardbrandon edited #855
  • Jan 14 20:40
    slinkardbrandon opened #855
Amila Viduranga
hi team, I want to upload multipart/ftm-data file with greater than 5MB, how should I do that
André Mazayev
IMPORTANT: We are moving to Discord (link: https://discord.gg/TSEcDRP ) ! Support @Gitter is no longer guaranteed
I am new in moleculerjs
me: {
auth: "required",
rest: "GET /admin",
cache: {
keys: ["#userID"]
async handler(ctx) {
const admin = await this.getById(ctx.meta.admin._id);
if (!admin)
throw new MoleculerClientError("Admin User not found!", 400);
const doc = await this.transformDocuments(ctx, {}, user);
return await this.transformEntity(doc, true, ctx.meta.token);
how to test it in postman
when i test it through this url "http://localhost:3000/api/admin"
i got Cannot read property '_id' of undefined
is this programing fault or something missing in postman,
please urgent help me
Hoàng Thành
@sakibindia : Check your login function. Is it already set the ctx.meta.admin correctly ?
Alessandro Valenti
Hi there how can I use moleculer from a VUE webpack browser application ? Thanks.
Zeeshan Haider
Hey guys
I listed that issue on github as well
still no solution may be I am missing something
Mohammad Majid Khan
how to upload file using multer in moleculer
any one have idea i don't want to use busboy for file upload
Bruno Carneiro

Hi there.
How do I change bodyparser json limit in moleculer-web?

    name: "api",
    mixins: [
   settings: {
        routes: [
                authentication: true,
                whitelist: [
                aliases: {
                    '/': 'api.ok',
                bodyParsers: {
                    json: { limit: "5MB" },
                    urlencoded: { extended: true, limit: "5MB" }

But don't work =/

Screen Shot 2020-08-30 at 09.45.29.png
I have problems about start services. Can you help me, please?
Satish Adabala

Being a newbie to moleculerjs I'm trying to use passport with moleculerjs for authorization using Azure AD passport plugin. Thanks to the mixin https://github.com/icebob/kantab/blob/master/backend/mixins/passport.mixin.js by @icebob I'm able to apply the authorization at the alias level in API gateway service successfully. Now I'm trying to extend this functionality by using this mixin in a dedicated identity service that does the authentication and authorization based on the service name passed to it. I was thinking of using the authorize method of API gateway to forward the requests to identity service if theauthorization route setting is set to true. However, when I call the identity service using ctx.call method the passport mixin is not being invoked! Here is my authorize method.

    async authorize(ctx, route, req) {
      let verified;
        // Verify JWT token
        try {
          verified = await ctx.call("identify.verifyToken");
          if (verified) {
            this.logger.info("Authenticated via JWT: ", user.username);
            ctx.meta.user = _.pick(user, ["_id", "username", "email", "image"]);
            ctx.meta.token = token;
            ctx.meta.userID = user._id;
        } catch (err) {
          throw new UnAuthorizedError(ApiGateway.Errors.ERR_INVALID_USER);

and here is the snippet of my identity service

const passportMixin = require("../mixins/passport.mixin");
module.exports = {
  name: "identity",
  mixins: [passportMixin({ successRedirect: "/api/v1/customer" })],
  settings: {
    routes: [],
    aliases: {},
    actions: {
      verifyToken: {
        rest: "GET /verify",
        async handler(ctx) {
          try {
            console.log("Token is being verified");
          } catch (err) {

The passport mixin is defined to apply passport plugin at alias level like below and the callback is set to forward the request to a customer service

        route.aliases["GET /verify"] = (req, res) =>
          passport.authenticate("oauth-bearer", { session: false })(
            callback(req, res)

I would've thought the identity service invokes the passport plugin before running the verifyToken method but the plugin doesn't get invoked and only the method is run printing the debug statement. My question is can I use passport mixin in other services than API gateway service and if so, what am I doing wrong here?

Thanks in advance!

Zeeshan Haider
I want to build a File Upload Rest Api
What is the best practice
Zeeshan Haider
How to disable JSON body parser for file uploads
for the specific route or service
I cant publish image
help me
Hoàng Thành
@thachnhanhbl : I dont think u need to put /public/ in url
just localhost:3000/filename.jpg
thanks for support
Screen Shot 2020-12-21 at 12.34.58 AM.png
Screen Shot 2020-12-21 at 12.35.15 AM.png
help me how to config return oject, not array. thanks
i want to cofig image single
Hoàng Thành

Screen Shot 2020-12-21 at 12.35.15 AM.png

Your question not clear... if u want fast response just go discord channel https://discord.com/channels/585148559155003392/585148559754657799