Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentError: Must provide a domain #21

Open
NicolasJupiter opened this issue Oct 22, 2018 · 1 comment
Open

ArgumentError: Must provide a domain #21

NicolasJupiter opened this issue Oct 22, 2018 · 1 comment

Comments

@NicolasJupiter
Copy link

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

[email protected] 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::FunctionCallbackInfov8::Value const&) [/usr/local/bin/node]
3: v8::internal::FunctionCallbackArguments::Call(void ()(v8::FunctionCallbackInfov8::Value const&)) [/usr/local/bin/node]
4: v8::internal::MaybeHandlev8::internal::Object v8::internal::(anonymous namespace)::HandleApiCallHelper(v8::internal::Isolate
, v8::internal::Handlev8::internal::HeapObject, v8::internal::Handlev8::internal::HeapObject, v8::internal::Handlev8::internal::FunctionTemplateInfo, v8::internal::Handlev8::internal::Object, 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
Copy link
Contributor

sneljo1 commented Oct 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants