{"action":"closed","issue":{"url":"https://api.github.com/repos/telemark/portalen-forside/issues/72","repository_url":"https://api.github.com/repos/telemark/portalen-forside","labels_url":"https://api.github.com/repos/telemark/portalen-forside/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/telemark/portalen-forside/issues/72/comments","events_url":"https://api.github.com/repos/telemark/portalen-forside/issues/72/events","html_url":"https://github.com/telemark/portalen-forside/issues/72","id":156109212,"number":72,"title":"Etter update: Internal Server Error på /api/messages","user":{"login":"maccyber","id":701351,"avatar_url":"https://avatars.githubusercontent.com/u/701351?v=3","gravatar_id":"","url":"https://api.github.com/users/maccyber","html_url":"https://github.com/maccyber","followers_url":"https://api.github.com/users/maccyber/followers","following_url":"https://api.github.com/users/maccyber/following{/other_user}","gists_url":"https://api.github.com/users/maccyber/gists{/gist_id}","starred_url":"https://api.github.com/users/maccyber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maccyber/subscriptions","organizations_url":"https://api.github.com/users/maccyber/orgs","repos_url":"https://api.github.com/users/maccyber/repos","events_url":"https://api.github.com/users/maccyber/events{/privacy}","received_events_url":"https://api.github.com/users/maccyber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telemark/portalen-forside/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-21T16:08:50Z","updated_at":"2016-05-21T20:22:20Z","closed_at":"2016-05-21T20:22:20Z","body":"```\r\nhttps://forsiden.portalen.t-fk.no/api/messages?roles=alle|administrasjonen|sentraladministrasjonen&limit=10\r\n```\r\nGir:\r\n\r\n```js\r\n{\r\nstatusCode: 500,\r\nerror: \"Internal Server Error\",\r\nmessage: \"An internal server error occurred\"\r\n}\r\n```\r\ndocker logs portalen_forside\r\n```\r\n[0] 160521/163342.811, [response] http://5a97fdfd06a3:8080: get /dist/main-fc3fb9009101439a23b2.js {} 304 (4ms)\r\n[1] Debug: internal, implementation, error \r\n[1]     TypeError: reply(...).code is not a function\r\n[1]     at EventEmitter.<anonymous> (messages.js:29:16)\r\n[1]     at emitOne (events.js:77:13)\r\n[1]     at EventEmitter.emit (events.js:169:7)\r\n[1]     at Promise.safeEmit (/src/node_modules/mongoose/node_modules/mpromise/lib/promise.js:83:21)\r\n[1]     at Promise.reject (/src/node_modules/mongoose/node_modules/mpromise/lib/promise.js:120:15)\r\n[1]     at emitOne (events.js:77:13)\r\n[1]     at EventEmitter.emit (events.js:169:7)\r\n[1]     at Promise.safeEmit (/src/node_modules/mongoose/node_modules/mpromise/lib/promise.js:83:21)\r\n[1]     at Promise.reject (/src/node_modules/mongoose/node_modules/mpromise/lib/promise.js:120:15)\r\n[1]     at Promise.error (/src/node_modules/mongoose/lib/promise.js:122:15)\r\n[1]     at /src/node_modules/mongoose/lib/promise.js:50:15\r\n[1]     at /src/node_modules/mongoose/lib/query.js:2177:9\r\n[1]     at /src/node_modules/mongoose/node_modules/kareem/index.js:160:11\r\n[1]     at Immediate.cb (/src/node_modules/mongoose/lib/query.js:1032:14)\r\n[1]     at Immediate._onImmediate (/src/node_modules/mongoose/node_modules/mquery/lib/utils.js:137:16)\r\n[1]     at processImmediate [as _immediateCallback] (timers.js:383:17)\r\n[1] 160521/163343.210, [error] message: Failed to parse: { find: \"messages\", filter: { hidefor: { $ne: \"engj\" }, date_from: { $lte: new Date(1463848423212) }, date_to: { $gte: new Date(1463848423212) }, role: { $in: [ \"alle\", \"administrasjonen\", \"sentraladministrasjonen\" ] } }, sort: { date_from: -1 }, limit: \"10\" }. 'limit' field must be numeric. stack: MongoError: Failed to parse: { find: \"messages\", filter: { hidefor: { $ne: \"engj\" }, date_from: { $lte: new Date(1463848423212) }, date_to: { $gte: new Date(1463848423212) }, role: { $in: [ \"alle\", \"administrasjonen\", \"sentraladministrasjonen\" ] } }, sort: { date_from: -1 }, limit: \"10\" }. 'limit' field must be numeric.\r\n[1]     at Function.MongoError.create (/src/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)\r\n[1]     at queryCallback (/src/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:200:36)\r\n[1]     at bound (domain.js:287:14)\r\n[1]     at runBound (domain.js:300:12)\r\n[1]     at [object Object].Callbacks.emit (/src/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:119:3)\r\n[1]     at [object Object].messageHandler (/src/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:358:23)\r\n[1]     at Socket.<anonymous> (/src/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:292:22)\r\n[1]     at emitOne (events.js:77:13)\r\n[1]     at Socket.emit (events.js:169:7)\r\n[1]     at readableAddChunk (_stream_readable.js:153:18)\r\n[1]     at Socket.Readable.push (_stream_readable.js:111:10)\r\n[1]     at TCP.onread (net.js:531:20)\r\n[1] 160521/163343.210, [response] http://5a97fdfd06a3:3030: get /messages {\"roles\":\"alle|administrasjonen|sentraladministrasjonen\",\"limit\":\"10\"} 500 (8ms)"}}
{"actor":{"display_login":"zrrrzzt"}}