Mango-information-systems / twitto_be

twitto_be is a real-time tweets analytics dashboard
https://twitto.be
Other
12 stars 2 forks source link

invalid callback when creating 502.html #144

Closed mef closed 4 years ago

mef commented 6 years ago

v3.3.0 with node.js v10 and latest modules installed crashes with the following error message:

Error rendering 502.html TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:127:9)
    at Object.writeFile (fs.js:1123:14)
    at /[...]/app.js:44:6
    at tryHandleCache (/[...]/node_modules/ejs/lib/ejs.js:257:5)
    at View.exports.renderFile [as engine] (/[...]/node_modules/ejs/lib/ejs.js:482:10)
    at View.render (/[...]/node_modules/express/lib/view.js:135:8)
    at tryRender (/[...]/node_modules/express/lib/application.js:640:10)
    at Function.render (/[...]/node_modules/express/lib/application.js:592:3)
    at Object.<anonymous> (/[...]/app.js:34:5)
    at Module._compile (internal/modules/cjs/loader.js:689:30)