NBI exception - Firmware update

Hello everyone,

I’m using GenieACS version 1.2.3 / MongoDB version 4.4 / NodeJS version 14.x

I have this error that happens very randomly when I try to update the firmware (Draytek Vigor2762) via the genieacs API:

genieacs-nbi[4271]: 2020-11-09T14:59:39.524Z [ERROR] Uncaught exception; pid=4300 exceptionName=“SyntaxError” exceptionMessage=“Unexpected token , in JSON at position 27” exceptionStack=“SyntaxError: Unexpected token , in JSON at position 27\n
at JSON.parse ()\n
at IncomingMessage. (/usr/lib/node_modules/genieacs/bin/genieacs-nbi:2:64021)\n
at IncomingMessage.emit (events.js:327:22)\n
at endReadableNT (_stream_readable.js:1327:12)\n
at processTicksAndRejections (internal/process/task_queues.js:80:21)”
genieacs-nbi[4271]: 2020-11-09T15:00:05.543Z [ERROR] Worker died; pid=6245 exitCode=1
genieacs-nbi[4271]: 2020-11-09T15:00:05.890Z [INFO] Worker listening; pid=6299 address=“” port=7557

Curiously, the firmware update is done without any problem!

Thanks in advance for your help.

Can you share a packet capture of the request that’s triggering this exception?