question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Embark test: Exception thrown in utils.js line 394

See original GitHub issue

Using 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:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
jrainvillecommented, Dec 4, 2018

This is fixed in: https://github.com/embark-framework/embark/pull/1158 I’ll publish a patch on 3.2 when it gets merged.

0reactions
jrainvillecommented, Dec 4, 2018

@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 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ - Embark
An Embark Dog DNA Test enables pet owners to learn about their dog's breed, ancestry, health, and what diseases a dog may be...
Read more >
Can a dog DNA test be wrong? - Embarkvet
Just because your dog looks like a certain breed doesn't mean their DNA matches that breed. Learn why dog breed identification can be...
Read more >
Science Corner: Coat Color Genetics 101 - Embarkvet
Learning about the inheritance of coat colors can be incredibly rewarding as it is an opportunity to see the power and influence of...
Read more >
What Makes Embark the Best Dog DNA Test?
Embark is the only dog DNA testing company that can accurately identify 350+ breeds, types, and varieties, including dingoes, coyotes, wolves, and village...
Read more >
Embark Tests For Over 350 Breeds | Dog Ancestry
A dog's story starts with his or her DNA. Embark unfolds a story that started over 15000 years ago when dog and human...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found