Embark test: Exception thrown in utils.js line 394
See original GitHub issueUsing embark version 3.2.3 or 3.2.4 (haven’t tested others) on Linux Mint 19, I get the following error immediately after running the command embark test "pathToFile"
:
/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/lib/utils/utils.js:394 protocol: matches[1], ^
TypeError: Cannot read property ‘1’ of null at Object.deconstructUrl (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/lib/utils/utils.js:394:22) at Test.initWeb3Provider (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/lib/tests/test.js:64:25) at Test.checkDeploymentOptions (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/lib/tests/test.js:269:10) at checkDeploymentOpts (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/lib/tests/test.js:297:14) at nextTask (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/node_modules/async/dist/async.js:5324:14) at Object.waterfall (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/node_modules/async/dist/async.js:5334:5) at Test.config (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/lib/tests/test.js:295:11) at Object.<anonymous> (/home/sea212/Dokumente/git/edifact-mvp/embark/test/TestSemantics.js:6:1) at Module._compile (internal/modules/cjs/loader.js:688:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Module.require (internal/modules/cjs/loader.js:636:17) at Module.require (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/lib/tests/run_tests.js:86:34) at require (internal/modules/cjs/helpers.js:20:18) at /home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/node_modules/mocha/lib/mocha.js:250:27 at Array.forEach (<anonymous>) at Mocha.loadFiles (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/node_modules/mocha/lib/mocha.js:247:14) at Mocha.run (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/node_modules/mocha/lib/mocha.js:576:10) at async.eachLimit (/home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/lib/tests/run_tests.js:121:17) at /home/sea212/.nvm/versions/node/v10.14.1/lib/node_modules/embark/node_modules/async/dist/async.js:3110:16
somehow embark seems not to be able to retrieve the protocol, address, port and the connection type, even though they are properly defined in the config files:
host: ‘localhost’, port: 8545, type: ‘rpc’
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top GitHub Comments
This is fixed in: https://github.com/embark-framework/embark/pull/1158 I’ll publish a patch on 3.2 when it gets merged.
@sea212 Just published Embark v3.2.7 Your problem is fixed in it. It is also faster than Embark 3.2.4 so have fun 🙂