w3c / vc-test-suite

Verifiable Credentials WG Test Suite
https://w3c.github.io/vc-test-suite/
BSD 3-Clause "New" or "Revised" License
68 stars 39 forks source link

"node generate.js" results in "TypeError: Cannot convert undefined or null to object" #45

Closed brentzundel closed 5 years ago

brentzundel commented 5 years ago

When running the shell command given on step 8, I received the following error:

brent@Lappy2000:~/dev/w3c/vc-test-suite$ cd implementations/ && node generate.js
/home/brent/dev/w3c/vc-test-suite/implementations/generate.js:25
      (Object.keys(test.err).length === 0) ? 'success' : 'failure';
              ^

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at results.tests.forEach (/home/brent/dev/w3c/vc-test-suite/implementations/generate.js:25:15)
    at Array.forEach (<anonymous>)
    at files.forEach (/home/brent/dev/w3c/vc-test-suite/implementations/generate.js:23:17)
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/brent/dev/w3c/vc-test-suite/implementations/generate.js:16:7)
    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)
brentzundel commented 5 years ago

Dmitri, let me know what next steps could be to troubleshoot this.

On Tue, Jun 11, 2019 at 9:27 AM Dmitri Zagidulin notifications@github.com wrote:

Assigned #45 https://github.com/w3c/vc-test-suite/issues/45 to @brentzundel https://github.com/brentzundel.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/w3c/vc-test-suite/issues/45?email_source=notifications&email_token=ACPFKPYCGZYPWO2QCCEOMVDPZ6767A5CNFSM4HWW4NW2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOR5JNPAQ#event-2404571010, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPFKP3PUGVLJU7Z2QSF773PZ6767ANCNFSM4HWW4NWQ .

TallTed commented 5 years ago

Retitling this issue would be helpful. Perhaps "node generate.js" results in "TypeError: Cannot convert undefined or null to object"

dmitrizagidulin commented 5 years ago

Fixed in PR #57.