SearchResults.aspx



  • @ben_lubar ?

    6/7 14:16 [183] - error: /search/SearchResults.aspx
     TypeError: Cannot read property 'end' of undefined
        at /usr/src/app/node_modules/nodebb-plugin-google-search/index.js:12:55
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at next (/usr/src/app/node_modules/express/lib/router/route.js:131:13)
        at Route.dispatch (/usr/src/app/node_modules/express/lib/router/route.js:112:3)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at /usr/src/app/node_modules/express/lib/router/index.js:277:22
        at param (/usr/src/app/node_modules/express/lib/router/index.js:349:14)
        at param (/usr/src/app/node_modules/express/lib/router/index.js:365:14)
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:410:3)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at Function.handle (/usr/src/app/node_modules/express/lib/router/index.js:176:3)
        at router (/usr/src/app/node_modules/express/lib/router/index.js:46:12)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at middleware.maintenanceMode (/usr/src/app/src/middleware/maintenance.js:13:11)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at Logger.expressLogger (/usr/src/app/src/logger.js:140:11)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at /usr/src/app/src/routes/authentication.js:22:4
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at SessionStrategy.strategy.pass (/usr/src/app/node_modules/passport/lib/middleware/authenticate.js:325:9)
        at SessionStrategy.authenticate (/usr/src/app/node_modules/passport/lib/strategies/session.js:71:10)
        at attempt (/usr/src/app/node_modules/passport/lib/middleware/authenticate.js:348:16)
        at authenticate (/usr/src/app/node_modules/passport/lib/middleware/authenticate.js:349:7)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at initialize (/usr/src/app/node_modules/passport/lib/middleware/initialize.js:53:5)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at middleware.processRender (/usr/src/app/src/middleware/render.js:97:3)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at middleware.addHeaders (/usr/src/app/src/middleware/middleware.js:97:2)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at session (/usr/src/app/node_modules/express-session/index.js:428:7)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at /usr/src/app/node_modules/express-useragent/index.js:43:9
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at cookieParser (/usr/src/app/node_modules/cookie-parser/index.js:56:14)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at jsonParser (/usr/src/app/node_modules/body-parser/lib/types/json.js:103:7)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at urlencodedParser (/usr/src/app/node_modules/body-parser/lib/types/urlencoded.js:91:7)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at favicon (/usr/src/app/node_modules/serve-favicon/index.js:72:7)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at compression (/usr/src/app/node_modules/compression/index.js:219:5)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at /usr/src/app/node_modules/connect-flash/lib/flash.js:21:5
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at expressInit (/usr/src/app/node_modules/express/lib/middleware/init.js:33:5)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at query (/usr/src/app/node_modules/express/lib/middleware/query.js:44:5)
        at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:312:13)
        at /usr/src/app/node_modules/express/lib/router/index.js:280:7
        at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:330:12)
        at next (/usr/src/app/node_modules/express/lib/router/index.js:271:10)
        at Function.handle (/usr/src/app/node_modules/express/lib/router/index.js:176:3)
        at EventEmitter.handle (/usr/src/app/node_modules/express/lib/application.js:173:10)
        at Server.app (/usr/src/app/node_modules/express/lib/express.js:38:9)
        at Server.<anonymous> (/usr/src/app/node_modules/socket.io/node_modules/engine.io/lib/server.js:435:22)
        at Server.<anonymous> (/usr/src/app/node_modules/socket.io/lib/index.js:260:16)
        at emitTwo (events.js:87:13)
        at Server.emit (events.js:172:7)
        at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:533:12)
        at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)
    Error: Can't set headers after they are sent.
        at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)
        at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:719:10)
        at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:164:12)
        at defaultFn (/usr/src/app/src/middleware/render.js:21:10)
        at /usr/src/app/src/middleware/render.js:86:9
        at /usr/src/app/public/src/modules/translator.js:149:5
        at /usr/src/app/public/src/modules/translator.js:174:6
        at /usr/src/app/public/src/modules/translator.js:195:4
        at Object.translator.load (/usr/src/app/public/src/modules/translator.js:226:5)
        at translateKey (/usr/src/app/public/src/modules/translator.js:193:14)
        at /usr/src/app/public/src/modules/translator.js:171:4
        at Array.forEach (native)
        at translateKeys (/usr/src/app/public/src/modules/translator.js:170:8)
        at Object.translator.translate (/usr/src/app/public/src/modules/translator.js:146:3)
        at /usr/src/app/src/middleware/render.js:83:19
        at View.express [as engine] (/usr/src/app/node_modules/templates.js/lib/templates.js:172:11)
        at View.render (/usr/src/app/node_modules/express/lib/view.js:126:8)
        at tryRender (/usr/src/app/node_modules/express/lib/application.js:639:10)
        at EventEmitter.render (/usr/src/app/node_modules/express/lib/application.js:591:3)
        at /usr/src/app/src/middleware/header.js:151:9
        at /usr/src/app/src/plugins/hooks.js:114:4
        at /usr/src/app/node_modules/async/lib/async.js:380:13
        at /usr/src/app/node_modules/async/lib/async.js:52:16
        at /usr/src/app/node_modules/async/lib/async.js:269:32
        at /usr/src/app/node_modules/async/lib/async.js:44:16
        at /usr/src/app/node_modules/async/lib/async.js:377:17
        at /usr/src/app/node_modules/nodebb-plugin-tdwtf-customizations/index.js:24:4
        at Object.Groups.isMember (/usr/src/app/src/groups/membership.js:291:11)
        at Object.module.exports.header [as method] (/usr/src/app/node_modules/nodebb-plugin-tdwtf-customizations/index.js:17:10)
        at /usr/src/app/src/plugins/hooks.js:107:12
        at /usr/src/app/node_modules/async/lib/async.js:375:13
        at iterate (/usr/src/app/node_modules/async/lib/async.js:262:13)
        at Object.async.forEachOfSeries.async.eachOfSeries (/usr/src/app/node_modules/async/lib/async.js:281:9)
        at Object.async.inject.async.foldl.async.reduce (/usr/src/app/node_modules/async/lib/async.js:374:15)
        at fireFilterHook (/usr/src/app/src/plugins/hooks.js:99:9)
        at Object.Plugins.fireHook (/usr/src/app/src/plugins/hooks.js:80:5)
        at /usr/src/app/src/middleware/header.js:146:12
        at /usr/src/app/node_modules/async/lib/async.js:726:13
        at /usr/src/app/node_modules/async/lib/async.js:52:16
        at async.forEachOf.async.eachOf (/usr/src/app/node_modules/async/lib/async.js:236:30)
        at _parallel (/usr/src/app/node_modules/async/lib/async.js:717:9)
        at Object.async.parallel (/usr/src/app/node_modules/async/lib/async.js:731:9)
        at middleware.renderHeader (/usr/src/app/src/middleware/header.js:69:9)
        at /usr/src/app/src/middleware/render.js:76:7
        at View.express [as engine] (/usr/src/app/node_modules/templates.js/lib/templates.js:172:11)
        at View.render (/usr/src/app/node_modules/express/lib/view.js:126:8)
        at tryRender (/usr/src/app/node_modules/express/lib/application.js:639:10)
        at EventEmitter.render (/usr/src/app/node_modules/express/lib/application.js:591:3)
        at ServerResponse.render (/usr/src/app/node_modules/express/lib/response.js:960:7)
        at /usr/src/app/src/middleware/render.js:61:12
        at fireFilterHook (/usr/src/app/src/plugins/hooks.js:96:11)
        at Object.Plugins.fireHook (/usr/src/app/src/plugins/hooks.js:80:5)
        at ServerResponse.res.render (/usr/src/app/src/middleware/render.js:30:12)
        at /usr/src/app/src/controllers/index.js:449:8
        at /usr/src/app/src/middleware/header.js:43:6
        at /usr/src/app/public/src/modules/translator.js:149:5
        at /usr/src/app/public/src/modules/translator.js:174:6
        at /usr/src/app/public/src/modules/translator.js:195:4
        at Object.translator.load (/usr/src/app/public/src/modules/translator.js:226:5)
        at translateKey (/usr/src/app/public/src/modules/translator.js:193:14)
        at /usr/src/app/public/src/modules/translator.js:171:4
        at Array.forEach (native)
        at translateKeys (/usr/src/app/public/src/modules/translator.js:170:8)
        at Object.translator.translate (/usr/src/app/public/src/modules/translator.js:146:3)
        at /usr/src/app/src/middleware/header.js:41:16
        at /usr/src/app/node_modules/async/lib/async.js:726:13
        at /usr/src/app/node_modules/async/lib/async.js:52:16
        at done (/usr/src/app/node_modules/async/lib/async.js:246:17)
        at /usr/src/app/node_modules/async/lib/async.js:44:16
        at /usr/src/app/node_modules/async/lib/async.js:723:17
        at /usr/src/app/node_modules/async/lib/async.js:167:37
        at /usr/src/app/src/controllers/api.js:98:4
        at /usr/src/app/node_modules/async/lib/async.js:52:16
        at /usr/src/app/node_modules/async/lib/async.js:1209:30
        at /usr/src/app/src/plugins/hooks.js:114:4
        at /usr/src/app/node_modules/async/lib/async.js:380:13
        at /usr/src/app/node_modules/async/lib/async.js:52:16
        at /usr/src/app/node_modules/async/lib/async.js:269:32
        at /usr/src/app/node_modules/async/lib/async.js:44:16
        at /usr/src/app/node_modules/async/lib/async.js:377:17
        at Object.Markdown.getConfig [as method] (/usr/src/app/node_modules/nodebb-plugin-markdown/index.js:38:5)
        at /usr/src/app/src/plugins/hooks.js:107:12
        at /usr/src/app/node_modules/async/lib/async.js:375:13
        at Immediate.iterate [as _onImmediate] (/usr/src/app/node_modules/async/lib/async.js:262:13)
        at processImmediate [as _immediateCallback] (timers.js:383:17)
    

  • Winner of the 2016 Presidential Election

    @boomzilla said in SearchResults.aspx:

    Cannot read property 'end' of undefined

    Dammit, @end



  • @boomzilla in my defense, http://expressjs.com/en/api.html is terrible documentation.


  • sockdevs

    @ben_lubar said in SearchResults.aspx:

    @boomzilla in my defense, http://expressjs.com/en/api.html is terrible documentation.

    how so? seems perfectly cromulent to me.



  • @accalia what do any of the functions return?


  • sockdevs

    @ben_lubar said in SearchResults.aspx:

    @accalia what do any of the functions return?

    standard assumption: unless otherwise mentioned in the documentation: assume they return undefined.

    it has yet to stear me wrong.

    plus they have those little examples for each function so you see what they do.



  • @boomzilla said in SearchResults.aspx:

    aspx

    Oh, are we going back to Community Server?



  • @Maciejasjmj said in SearchResults.aspx:

    @boomzilla said in SearchResults.aspx:

    aspx

    Oh, are we going back to Community Server?

    Fucking finally.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.