MY corona bot was working for a long time. it was offline for 3 months. Now, i have hosted it in vultr (hosting service). But i never faced this error, but facing this now....
New:
I just had a look, still i am having new error. MY code: https://paste.gg/p/anonymous/16c003ce7e49471b9fc7f4af25a688ae
Error is:
5|x | (node:19549) UnhandledPromiseRejectionWarning: Error: An options parameter object is required –
Yes i have moved from CanvasRenderService to ChartJSNodeCanvas
Old:
const { CanvasRenderSerice } = require("chartjs-node-canvas")
const canvasRenderService = new CanvasRenderService(
width,
height,
ChartJS => {}
);
With error:
5|x | (node:18303) UnhandledPromiseRejectionWarning: TypeError: CanvasRenderService is not a constructor
5|x | at Client.<anonymous> (/root/covid/bot.js:357:37)
5|x | at processTicksAndRejections (internal/process/task_queues.js:97:5)