Code Monkey home page Code Monkey logo

nestcloud-grpc-example's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nestcloud-grpc-example's Issues

Demo not working

I get this error when testing out this demo, I think it might be an issue with nestcloud-grpc

Nest] 24268   - 10/26/2020, 10:18:40 AM   [ExceptionsHandler] Cannot read property 'id' of null +3493ms
TypeError: Cannot read property 'id' of null
    at GrpcClient.getProxyService (/home/koolamusic/git/nestcloud-grpc-example/node_modules/@nestcloud/grpc/grpc-client.js:34:35)
    at Object.grpcService.<computed> [as list] (/home/koolamusic/git/nestcloud-grpc-example/node_modules/@nestcloud/grpc/grpc-client.js:20:46)
    at HeroController.<anonymous> (/home/koolamusic/git/nestcloud-grpc-example/client/hero.controller.ts:32:45)
    at Generator.next (<anonymous>)
    at /home/koolamusic/git/nestcloud-grpc-example/client/hero.controller.ts:19:71
    at new Promise (<anonymous>)
    at __awaiter (/home/koolamusic/git/nestcloud-grpc-example/client/hero.controller.ts:15:12)
    at HeroController.list (/home/koolamusic/git/nestcloud-grpc-example/client/hero.controller.ts:35:16)
    at /home/koolamusic/git/nestcloud-grpc-example/node_modules/@nestjs/core/router/router-execution-context.js:38:29
    at InterceptorsConsumer.intercept (/home/koolamusic/git/nestcloud-grpc-example/node_modules/@nestjs/core/interceptors/interceptors-consumer.j
s:11:20)

[ExceptionHandler] metatype is not a constructor

when i import
ConsulServiceModule.register({dependencies: [NEST_BOOT],}),
LoadbalanceModule.register({ dependencies: [NEST_BOOT], }),

inside the app module

TypeError: metatype is not a constructor
at Injector.instantiateClass (/home/user/bigtix-nest-cart/node_modules/@nestjs/core/injector/injector.js:284:19)
at callback (/home/user/bigtix-nest-cart/node_modules/@nestjs/core/injector/injector.js:75:41)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:832:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

Error: connect ECONNREFUSED 127.0.0.1:8500

When I run yarn start:server1 or yarn start:server2,both I got following error message:

[Nest] 4552   - 2020-12-18 16:57:12   [ConsulService] Unable to initial ServiceModule, retrying... +6015ms
Error: connect ECONNREFUSED 127.0.0.1:8500

Did I miss something?
I'm not familiar with Consul or gRpc
I just start up the 2 server with scripts in package.json directly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.