Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Stivenson
    @stivenson
    @bojand oh thanks. I'm going to try adding babel to the coverage, because i'm using ES6 classes in node v10.
    The link is cool...
    Bojan
    @bojand
    hmm not sure i understand… there is no need for babel
    node 10 supports classes
    mali itself does not use babel or any transpiler. it’s plain javascript. what you see is what’s run.
    Stivenson
    @stivenson

    yes, @bojand yo're right, but of moment my coverage is impossible

    auth.js | 0 | 0 | 0 | 0 | 1,3,5,7,8,13 |
    core.js | 0 | 0 | 0 | 0 |... 78,82,86,91,92 |
    giftcard.js | 0 | 0 | 0 | 0 |... 41,42,43,48,53 |

    What might be ? :( i see all fine..

    only an unit-test to a file have the real coverage (it's a test that no use any proto)

    i think so: The coverage is not able to follow the execution of the functions when they are called through proto.
    Bojan
    @bojand
    Hello, not sure I understand tbh… I think I would need more info. If you have like integration / functional tests that’s running requests against a service and you are trying to test coverage of your service, which is running as a separate process, then you probably need to manually instrument your service and run the instrumented code. https://istanbul.js.org/docs/advanced/instrument/
    Stivenson
    @stivenson
    ok @bojand . i'll try its.
    Anh Tu Nguyen
    @xgenvn
    Hi guys, is there any example with typescript?
    Bojan
    @bojand
    Hello, not in the examples repo; there may be some out in the wild that I do not know about.
    Mateusz Tkacz
    @Xardas_gitlab
    Hi. Is there any way to add multiple proto files to server instance? Example: const app = new Mali([PROTO_PATH1, PROTO_PATH2]);
    Bojan
    @bojand
    @Xardas_gitlab Hello yest this should be possible using addService(). Example in tests:
    https://github.com/malijs/mali/blob/master/test/create.test.js#L300
    Mateusz Tkacz
    @Xardas_gitlab
    @bojand This is what i was looking for! Thanks.
    Andrew Watts-Curnow
    @andywatts

    Has anyone got a gRPC keepalive configuration that closes channels after x seconds of failed pings?
    I've tried... 'app.start('0.0.0.0:8080', creds, {"grpc.keepalive_time_ms":1000,"grpc.keepalive_timeout_ms": 2000 })'

    Do I need similar settings in my c# client? TIA

    Bojan
    @bojand

    Hmm these options should be passed properly and handled by underlying node and C++ grpc lib. I don’t have much time to test things out atm, but you could try additional logging on the server, for example:

    GRPC_VERBOSITY=debug GRPC_TRACE=tcp,http,api,timer,timer_check,connectivity_state node myapp.js

    I believe those should capture the ping checks. You can take a look at the available TRACE flags: https://github.com/grpc/grpc/blob/master/doc/environment_variables.md

    Andrew Watts-Curnow
    @andywatts
    @bojan Thankyou
    Andrew Watts-Curnow
    @andywatts
    Any idea how to serve a second health-check service from Mali?
    https://github.com/grpc/grpc/blob/master/doc/health-checking.md
    /doh. Is it as simple as mali.addService...
    Andrew Watts-Curnow
    @andywatts
    Nope, not that simple.
    I think I need to use Grpc server's addService, but can't get gRPC server without starting Mali...and can't add services once started.
    Bojan
    @bojand
    Hi, isn't that just using addService?
    Andrew Watts-Curnow
    @andywatts
    Using the addService method on the grpc server.
    Rather than Mali’s own addService method.
    Joshua Gallagher
    @Joshgallagher
    Could Mali be used with NestJS's gRPC client config? Does anyone forsee any issues with this? I wanted to use NestJS as the Gateway as it's gRPC lacks support for metadata and advanced error handling
    Also, has Mali been used in production anywhere?
    washanhanzi
    @washanhanzi
    Mali seems auto convert the snake_case in proto file to CamelCase, however in the route_guide example, the snake_case still being used, I am quite confused. Anyone can help me on this?
    Anon Anon
    @orion3000
    The logger middleware does not work when I am using static code is there a way to fix this?