Hyperledger Composer Failed to load connector module composer-connector-undefined for connection type undefined

0 votes

package.json file:

    {
  "engines": {
    "composer": "^0.17.1"
  },
  "name": "block-network",
  "version": "0.0.1",
  "description": "Business Network",
  "scripts": {
    "pretest": "npm run lint",
    "lint": "eslint .",
    "postlicchk": "npm run doc",
    "doc": "jsdoc --pedantic --recurse -c jsdoc.json",
    "test": "mocha -t 0 --recursive",
    "deploy": "./scripts/deploy.sh"
  },
  "author": "Simon Mullaney",
  "email": "",
  "license": "Apache-2.0",
  "devDependencies": {
    "browserfs": "^1.2.0",
    "chai": "latest",
    "composer-common": "^0.17.1",
    "composer-playground-api": "^0.17.1",
    "composer-admin": "^0.17.1",
    "composer-client": "^0.17.1",
    "composer-connector-embedded": "^0.17.1",
    "composer-connector-hlfv1": "^0.17.1",
    "composer-connector-proxy": "^0.17.1",
    "composer-connector-server": "^0.17.1",
    "composer-runtime-embedded": "^0.17.1",
    "composer-connector-web": "^0.17.1",
    "composer-runtime": "^0.17.1",
    "composer-runtime-web": "^0.17.1",
    "eslint": "latest",
    "istanbul": "latest",
    "jsdoc": "latest",
    "mkdirp": "latest",
    "mocha": "latest",
    "moment": "latest",
    "sinon": "latest"
  },
  "license-check-config": {
    "src": [
      "**/*.js",
      "!./coverage/**/*",
      "!./node_modules/**/*",
      "!./out/**/*",
      "!./scripts/**/*"
    ],
    "path": "header.txt",
    "blocking": true,
    "logInfo": false,
    "logError": true
  },
  "dependencies": {
    "es6-promise": "latest",
    "opentracing": "^0.14.1",
    "passport-github": "^1.1.0"
  }
}

I used the following commands to update my environment:

npm install -g composer-cli@next
npm install -g composer-rest-server@next
npm install -g generator-hyperledger-composer@next

I am getting this error:

Connection fails: Error: Failed to load connector module "composer-connector-undefined" for connection type "undefined".

Oct 30, 2018 in Blockchain by digger
• 26,740 points
1,073 views

1 answer to this question.

0 votes

Hey.

First, make sure that you are extending from the right docker image. Your docker file should look like this:

 FROM hyperledger/composer-rest-server:0.17.1
RUN npm install --production loopback-connector-mongodb passport-github && \
    npm cache clean --force && \
    ln -s node_modules .node_modules

If this is correct, then run these commands in the Fabric folder:

./teardownFabric.sh
export FABRIC_VERSION=hlfv11
./download.sh
./startFabric.sh

And if this also does not work, then reset Composer:

  1. cd ~/lib/node_modules/composer-cli/
  2. npm uninstall -g composer-cli
  3. nvm install --lts
  4. nvm use --lts
  5. npm install -g composer-cli
answered Oct 30, 2018 by Omkar
• 69,220 points

Related Questions In Blockchain

+4 votes
2 answers

Hyperledger Fabric issue: orderer client failed to connect to orderer.xxx.net:7050: failed to create new connection

Hey @gujiwork, Try making the following changes: docker-compose-base.yaml and ...READ MORE

answered Nov 5, 2018 in Blockchain by Omkar
• 69,220 points
19,901 views
0 votes
2 answers
+2 votes
3 answers

Hyperledger Fabric: Peer Connection error: Failed obtaining connection: Could not connect to any of the endpoints.

 You can extend your /etc/hosts file and make orderer.example.com domain name ...READ MORE

answered Nov 13, 2018 in Blockchain by Omkar
• 69,220 points
3,889 views
0 votes
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+1 vote
1 answer

I am unable to change port of composer-rest-server. Please help!

Use full format for running a business ...READ MORE

answered Mar 27, 2018 in Blockchain by Christine
• 15,790 points
1,126 views
+1 vote
1 answer
0 votes
1 answer

HyperLedger Composer: Failed to load connector module “composer-connector-embedded” for connection profile “testprofile”

First, update your devDependencies in package.json "devDependencies": { ... "composer-admin": ...READ MORE

answered Nov 2, 2018 in Blockchain by Omkar
• 69,220 points
759 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP