Getting a 502 error on upload of group cover image

Solved Technical Support
  • #1

    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

  • NodeBB
    #2

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

  • #3

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


Suggested Topics


  • 0 Votes
    7 Posts
    300 Views

  • 0 Votes
    5 Posts
    1911 Views

  • Registration Error

    Technical Support
    0 Votes
    6 Posts
    1708 Views

  • Error Starting NodeBB

    Technical Support
    1 Votes
    20 Posts
    5384 Views

  • 0 Votes
    10 Posts
    5122 Views

| | | |