SebastinSanty / autograder-cli

A CLI for the JavaAutolab
0 stars 0 forks source link

init command error #1

Open prasadtalasila opened 7 years ago

prasadtalasila commented 7 years ago

After installation, I tried the autograder init command. The following error came up.

/usr/lib/node_modules/autolab-cli/index.js:53
    if (prefs.gitlab.time - Math.floor(Date.now() / 1000) < 7200) {
                    ^

TypeError: Cannot read property 'time' of undefined
    at init (/usr/lib/node_modules/autolab-cli/index.js:53:18)
    at Object.<anonymous> (/usr/lib/node_modules/autolab-cli/index.js:183:2)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
SebastinSanty commented 7 years ago

Solved the issue c73faeb. Was coming due to prefs not being checked initially.