hyperledger / hyperledger/fabric-samples

rest-api-typescript getting error

Open
#962 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
3.5k
Avg merge
3d 20h
Merged PRs (30d)
6

Description

EnvVarError: env-var: "HLF_CONNECTION_PROFILE_ORG1" is a required variable, but it was not set. An example of a valid value would be: {"name":"test-network-org1","version":"1.0.0","client":{"organization":"Org1" ... }
at raiseError (/Users/mac/Documents/projects/company/hyperledger/hyperledger_typscript/network/apis/node_modules/env-var/lib/variable.js:47:11)
at Object.asJsonObject (/Users/mac/Documents/projects/company/hyperledger/hyperledger_typscript/network/apis/node_modules/env-var/lib/variable.js:64:11)
at Object. (/Users/mac/Documents/projects/company/hyperledger/hyperledger_typscript/network/apis/src/config.ts:187:4)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (/Users/mac/Documents/projects/company/hyperledger/hyperledger_typscript/network/apis/src/index.ts:9:1)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.