wearetheledger / hyperledger-typescript-boilerplate

This is a boilerplate that interacts between Hyperledger Fabric Peers and a front end.
http://theledger.be
MIT License
114 stars 35 forks source link

ArgumentError: Must provide a domain #21

Open NicolasJupiter opened 6 years ago

NicolasJupiter commented 6 years ago

MacBook-Air:hyperledger-typescript-boilerplate dpk$ npm start && npm test

hyperledger-typescript-boilerplate@1.2.1 start /Users/dpk/Desktop/Project/blockchain/attempt5/fabric-samples/hyperledger-typescript-boilerplate ts-node -r tsconfig-paths/register src/main.ts

Missing baseUrl in compilerOptions. tsconfig-paths will be skipped [Nest] 71753 - 2018-10-22 20:53:59 [NestFactory] Starting Nest application... (node:71753) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead debug: NODE_ENV: LOCAL debug: PORT: 3000 debug: DOMAIN_URL:
debug: AWS_ACCESS_KEY:
debug: AWS_SECRET_ACCESS_KEY:
debug: AWS_REGION:
debug: AWS_QUEUE_NAME:
debug: BYPASS_QUEUE: false debug: PURGE_QUEUE_ON_STARTUP: false debug: DEAD_LETTER_QUEUE_ARN: null debug: PEER_HOST: localhost debug: ORDERER_HOST: localhost debug: CA_HOST: localhost debug: PUSHER_KEY: undefined debug: PUSHER_APP_ID: undefined debug: PUSHER_SECRET: undefined debug: PUSHER_CLUSTER: undefined debug: AUTH0_CLIENT_ID: undefined debug: AUTH0_CLIENT_SECRET: undefined debug: AUTH0_DOMAIN: undefined debug: AUTH0_AUDIENCE: undefined debug: LOGGER_SQS_DEBUG: false debug: SKIP_MIDDLEWARE: false [Nest] 71753 - 2018-10-22 20:53:59 [InstanceLoader] ApplicationModule dependencies initialized +35ms [Nest] 71753 - 2018-10-22 20:53:59 [InstanceLoader] EventsModule dependencies initialized +0ms [Nest] 71753 - 2018-10-22 20:53:59 [InstanceLoader] QueueModule dependencies initialized +1ms [Nest] 71753 - 2018-10-22 20:53:59 [InstanceLoader] PingModule dependencies initialized +1ms [Nest] 71753 - 2018-10-22 20:53:59 [InstanceLoader] ChainModule dependencies initialized +4ms [Nest] 71753 - 2018-10-22 20:53:59 [ExceptionHandler] Must provide a domain +27ms ArgumentError: Must provide a domain at new ManagementClient (/Users/dpk/Desktop/Project/blockchain/attempt5/fabric-samples/hyperledger-typescript-boilerplate/node_modules/auth0/src/management/index.js:96:11) at new Auth0AuthenticationService (/Users/dpk/Desktop/Project/blockchain/attempt5/fabric-samples/hyperledger-typescript-boilerplate/src/core/authentication/auth0/auth0-authentication.service.ts:24:28) at Injector.instantiateClass (/Users/dpk/Desktop/Project/blockchain/attempt5/fabric-samples/hyperledger-typescript-boilerplate/node_modules/@nestjs/core/injector/injector.js:212:78) at callback (/Users/dpk/Desktop/Project/blockchain/attempt5/fabric-samples/hyperledger-typescript-boilerplate/node_modules/@nestjs/core/injector/injector.js:67:41) at at process._tickDomainCallback (internal/process/next_tick.js:228:7) at Function.Module.runMain (module.js:695:11) at Object. (/Users/dpk/Desktop/Project/blockchain/attempt5/fabric-samples/hyperledger-typescript-boilerplate/node_modules/ts-node/src/bin.ts:157:12) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3 1: node::Abort() [/usr/local/bin/node] 2: node::Chdir(v8::FunctionCallbackInfo const&) [/usr/local/bin/node] 3: v8::internal::FunctionCallbackArguments::Call(void ()(v8::FunctionCallbackInfo const&)) [/usr/local/bin/node] 4: v8::internal::MaybeHandle v8::internal::(anonymous namespace)::HandleApiCallHelper(v8::internal::Isolate, v8::internal::Handle, v8::internal::Handle, v8::internal::Handle, v8::internal::Handle, v8::internal::BuiltinArguments) [/usr/local/bin/node] 5: v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/usr/local/bin/node] 6: 0x300b69d042fd Abort trap: 6

sneljo1 commented 6 years ago

In order for this boilerplate to work, you need to pass the Auth0 variables. AuthO is hardwired in. Otherwise you just remove all Auth0 stuff and use the headerauth provider