{"action":"created","issue":{"url":"https://api.github.com/repos/julianlam/nodebb-plugin-mentions/issues/56","labels_url":"https://api.github.com/repos/julianlam/nodebb-plugin-mentions/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/julianlam/nodebb-plugin-mentions/issues/56/comments","events_url":"https://api.github.com/repos/julianlam/nodebb-plugin-mentions/issues/56/events","html_url":"https://github.com/julianlam/nodebb-plugin-mentions/issues/56","id":100241249,"number":56,"title":"Console log prints \"MongoError: skip requires an integer\"","user":{"login":"jujokini","id":7804235,"avatar_url":"https://avatars.githubusercontent.com/u/7804235?v=3","gravatar_id":"","url":"https://api.github.com/users/jujokini","html_url":"https://github.com/jujokini","followers_url":"https://api.github.com/users/jujokini/followers","following_url":"https://api.github.com/users/jujokini/following{/other_user}","gists_url":"https://api.github.com/users/jujokini/gists{/gist_id}","starred_url":"https://api.github.com/users/jujokini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jujokini/subscriptions","organizations_url":"https://api.github.com/users/jujokini/orgs","repos_url":"https://api.github.com/users/jujokini/repos","events_url":"https://api.github.com/users/jujokini/events{/privacy}","received_events_url":"https://api.github.com/users/jujokini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-11T06:55:49Z","updated_at":"2015-08-12T11:58:17Z","closed_at":"2015-08-12T07:01:27Z","body":"I got error \"MongoError: skip requires an integer\" with this plugin on 0.7.x branch\r\n    at Function.MongoError.create (/work/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)\r\n    at Cursor.skip (/work/node_modules/mongodb/lib/cursor.js:498:49)\r\n    at getSortedSetRange (/work/src/database/mongo/sorted.js:130:5)\r\n    at Object.module.getSortedSetRevRange (/work/src/database/mongo/sorted.js:108:3)\r\n    at Object.Groups.getGroups (/work/src/groups.js:110:6)\r\n    at SocketPlugins.mentions.listGroups (/work/node_modules/nodebb-plugin-mentions/library.js:222:9)\r\n    at callMethod (/work/src/socket.io/index.js:204:2)\r\n    at onMessage (/work/src/socket.io/index.js:149:3)\r\n    at Socket.<anonymous> (/work/src/socket.io/index.js:61:3)\r\n    at Socket.emit (events.js:107:17)\r\n\r\nI looks like nodebb-plugin-mentions/library.js:222 is sending wrong parameters:\r\n\tGroups.getGroups('groups:visible:createtime', 0, -1, function(err, groups) {...\r\nExpected at /src/groups.js:110\r\n\tGroups.getGroups = function(start, stop, callback) {..."},"comment":{"url":"https://api.github.com/repos/julianlam/nodebb-plugin-mentions/issues/comments/130272460","html_url":"https://github.com/julianlam/nodebb-plugin-mentions/issues/56#issuecomment-130272460","issue_url":"https://api.github.com/repos/julianlam/nodebb-plugin-mentions/issues/56","id":130272460,"user":{"login":"jujokini","id":7804235,"avatar_url":"https://avatars.githubusercontent.com/u/7804235?v=3","gravatar_id":"","url":"https://api.github.com/users/jujokini","html_url":"https://github.com/jujokini","followers_url":"https://api.github.com/users/jujokini/followers","following_url":"https://api.github.com/users/jujokini/following{/other_user}","gists_url":"https://api.github.com/users/jujokini/gists{/gist_id}","starred_url":"https://api.github.com/users/jujokini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jujokini/subscriptions","organizations_url":"https://api.github.com/users/jujokini/orgs","repos_url":"https://api.github.com/users/jujokini/repos","events_url":"https://api.github.com/users/jujokini/events{/privacy}","received_events_url":"https://api.github.com/users/jujokini/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T11:58:17Z","updated_at":"2015-08-12T11:58:17Z","body":"I did delete the \"npm-shrinkwrap.json\" file. This could have led to the situation where the bug occured."}}