Failed to decode utf-8 in titles



  • NodeBB v0.60

    26/12 00:18 [9765] - error: /topic/10/gu%EDa-b%E1sica-de-alquimia
     TypeError: Failed to decode param 'gu%EDa-b%E1sica-de-alquimia'
        at decode_param (/opt/vapor/nodebb/node_modules/express/lib/router/layer.js:162:15)
        at Layer.match (/opt/vapor/nodebb/node_modules/express/lib/router/layer.js:136:11)
        at Function.match_layer (/opt/vapor/nodebb/node_modules/express/lib/router/index.js:289:16)
        at next (/opt/vapor/nodebb/node_modules/express/lib/router/index.js:190:10)
        at /opt/vapor/nodebb/node_modules/express/lib/router/index.js:192:16
        at Function.match_layer (/opt/vapor/nodebb/node_modules/express/lib/router/index.js:296:3)
        at next (/opt/vapor/nodebb/node_modules/express/lib/router/index.js:190:10)
        at /opt/vapor/nodebb/node_modules/express/lib/router/index.js:192:16
        at Function.match_layer (/opt/vapor/nodebb/node_modules/express/lib/router/index.js:296:3)
        at next (/opt/vapor/nodebb/node_modules/express/lib/router/index.js:190:10)
    26/12 00:18 [9765] - error: Invalid url fragment : topic/10/gu%EDa-b%E1sica-de-alquimia URIError: URI malformed
        at decodeURIComponent (native)
        at Object.Meta.title.build (/opt/vapor/nodebb/src/meta/title.js:22:10)
        at Object.async.parallel.title (/opt/vapor/nodebb/src/middleware/middleware.js:308:17)
        at /opt/vapor/nodebb/node_modules/async/lib/async.js:583:25
        at /opt/vapor/nodebb/node_modules/async/lib/async.js:125:13
        at Array.forEach (native)
        at _each (/opt/vapor/nodebb/node_modules/async/lib/async.js:46:24)
        at Object.async.each (/opt/vapor/nodebb/node_modules/async/lib/async.js:124:9)
        at _parallel (/opt/vapor/nodebb/node_modules/async/lib/async.js:582:20)
        at Object.async.parallel (/opt/vapor/nodebb/node_modules/async/lib/async.js:598:9)
    

    The title is Guía básica de alquimia


  • Admin

    Besides the crash, what are the symptoms? Topic inaccessible?



  • @julian:

    No symptoms. Can access the topic without problem, reply, etc. And this issue occur sometimes. Because this I reported here.


  • Admin

    This doesn't crash by the way it just can't decode the title at

    https://github.com/NodeBB/NodeBB/blob/master/src/meta/title.js#L21-L26

    and uses the fallback, which is either browserTitle, siteTitle or NodeBB.


 


Star

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