smo-key / notebookgenie

NodeJS web server that automagically converts a Trello board into a printable document

Home Page:https://genie.arthurpachachura.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Occasional error when building boards

smo-key opened this issue · comments

/node/trello2latex/node_modules/string/lib/string.js:422
        if (this.s.lastIndexOf(prefixes[i], 0) === 0) return true;
                   ^
TypeError: Cannot call method 'lastIndexOf' of undefined
    at S.startsWith (/node/trello2latex/node_modules/string/lib/string.js:422:20)
    at /node/trello2latex/js/t2lcompiler.js:423:23
    at /node/trello2latex/js/util.js:110:20
    at passBackControl (/node/trello2latex/node_modules/oauth/lib/oauth.js:397:13)
    at IncomingMessage.<anonymous> (/node/trello2latex/node_modules/oauth/lib/oauth.js:409:9)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickDomainCallback (node.js:459:13)
error: Forever detected script exited with code: 8

Potential resolution: test for undefined behaviorand verify that server receives updated code