Getting a 502 error on upload of group cover image



  • This is my console log

    15/5 09:54 [302] - error: TypeError: Cannot read property 'match' of undefined
    at Mime.extension (/var/www/mysite/node_modules/mime/mime.js:79:22)
    at saveFileToLocal (/var/www/mysite/src/controllers/uploads.js:202:26)
    at /var/www/mysite/src/controllers/uploads.js:168:3
    at Jimp.<anonymous> (/var/www/mysite/src/file.js:62:3)
    at Jimp.parseBitmap (/var/www/mysite/node_modules/jimp/index.js:251:23)
    at /var/www/mysite/node_modules/jimp/index.js:169:29
    at /var/www/mysite/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:188:31
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
    TypeError: Cannot read property 'match' of undefined
    at Mime.extension (/var/www/mysite/node_modules/mime/mime.js:79:22)
    at saveFileToLocal (/var/www/mysite/src/controllers/uploads.js:202:26)
    at /var/www/mysite/src/controllers/uploads.js:168:3
    at Jimp.<anonymous> (/var/www/mysite/src/file.js:62:3)
    at Jimp.parseBitmap (/var/www/mysite/node_modules/jimp/index.js:251:23)
    at /var/www/mysite/node_modules/jimp/index.js:169:29
    at /var/www/mysite/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:188:31
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
    15/5 09:54 [302] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.

    Please help


  • Admin

    Thanks for reporting should be fixed on master https://github.com/NodeBB/NodeBB/issues/4645



  • Thanks! I updated my site from the master and it now works.


Log in to reply
 


Star

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.