{"action":"created","issue":{"url":"https://api.github.com/repos/ibm-cloud-solutions/hubot-ibmcloud-cognitive-ui/issues/22","repository_url":"https://api.github.com/repos/ibm-cloud-solutions/hubot-ibmcloud-cognitive-ui","labels_url":"https://api.github.com/repos/ibm-cloud-solutions/hubot-ibmcloud-cognitive-ui/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/ibm-cloud-solutions/hubot-ibmcloud-cognitive-ui/issues/22/comments","events_url":"https://api.github.com/repos/ibm-cloud-solutions/hubot-ibmcloud-cognitive-ui/issues/22/events","html_url":"https://github.com/ibm-cloud-solutions/hubot-ibmcloud-cognitive-ui/issues/22","id":185902034,"number":22,"title":"error: Error getting view results Error: missing","user":{"login":"iStooge","id":7523006,"avatar_url":"https://avatars.githubusercontent.com/u/7523006?v=3","gravatar_id":"","url":"https://api.github.com/users/iStooge","html_url":"https://github.com/iStooge","followers_url":"https://api.github.com/users/iStooge/followers","following_url":"https://api.github.com/users/iStooge/following{/other_user}","gists_url":"https://api.github.com/users/iStooge/gists{/gist_id}","starred_url":"https://api.github.com/users/iStooge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iStooge/subscriptions","organizations_url":"https://api.github.com/users/iStooge/orgs","repos_url":"https://api.github.com/users/iStooge/repos","events_url":"https://api.github.com/users/iStooge/events{/privacy}","received_events_url":"https://api.github.com/users/iStooge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-28T11:37:54Z","updated_at":"2016-11-02T17:46:01Z","closed_at":null,"body":"I am always getting the following error when trying to connect to the cognitive UI via the given link bei Hubot:\n\n[Fri Oct 28 2016 13:33:11 GMT+0200 (CEST)] - error: Error getting view results Error: missing\n  at Request._callback (/.../node_modules/hubot-ibmcloud-cognitive-ui/node_modules/cloudant/node_modules/nano/lib/nano.js:248:15)\n  at Request.self.callback (/.../Hubot/node_modules/request/request.js:187:22)\n  at emitTwo (events.js:87:13)\n  at Request.emit (events.js:172:7)\n  at Request.<anonymous> (/.../Hubot/node_modules/request/request.js:1048:10)\n  at emitOne (events.js:77:13)\n  at Request.emit (events.js:169:7)\n  at IncomingMessage.<anonymous> (/.../Hubot/node_modules/request/request.js:969:12)\n  at emitNone (events.js:72:20)\n  at IncomingMessage.emit (events.js:166:7)\n  at endReadableNT (_stream_readable.js:921:12)\n  at nextTickCallbackWith2Args (node.js:442:9)\n  at process._tickCallback (node.js:356:17)\n\nSee the picture for whats happening in the browser\n\n![image](https://cloud.githubusercontent.com/assets/7523006/19805213/5ccc92ba-9d13-11e6-96f1-e9312e403330.png)\n"},"comment":{"url":"https://api.github.com/repos/ibm-cloud-solutions/hubot-ibmcloud-cognitive-ui/issues/comments/257943331","html_url":"https://github.com/ibm-cloud-solutions/hubot-ibmcloud-cognitive-ui/issues/22#issuecomment-257943331","issue_url":"https://api.github.com/repos/ibm-cloud-solutions/hubot-ibmcloud-cognitive-ui/issues/22","id":257943331,"user":{"login":"jlpadilla","id":4671325,"avatar_url":"https://avatars.githubusercontent.com/u/4671325?v=3","gravatar_id":"","url":"https://api.github.com/users/jlpadilla","html_url":"https://github.com/jlpadilla","followers_url":"https://api.github.com/users/jlpadilla/followers","following_url":"https://api.github.com/users/jlpadilla/following{/other_user}","gists_url":"https://api.github.com/users/jlpadilla/gists{/gist_id}","starred_url":"https://api.github.com/users/jlpadilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlpadilla/subscriptions","organizations_url":"https://api.github.com/users/jlpadilla/orgs","repos_url":"https://api.github.com/users/jlpadilla/repos","events_url":"https://api.github.com/users/jlpadilla/events{/privacy}","received_events_url":"https://api.github.com/users/jlpadilla/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T17:46:01Z","updated_at":"2016-11-02T17:46:01Z","body":"Looks like you don't have any documents in the nlc database, other than the `botInfo` doc, that you created manually.  If that's correct, then the problem is most likely with sync.\r\n\r\nThe database sync is initiated from your Hubot. It's interesting that you mention that `rr` is syncing. I assume you are seeing success log messages from the Hubot console.  If that's correct your configuration is most likely ok because the sync  function is common to both databases.\r\n\r\nLet's start by checking the data in your local database.  The local database is PouchDB, you can use the following node script to check if the nlc database has documents that need to be sync.  If we have documents, then we need a closer look at sync, if there's no documents then it's something else.  Note that documents with `storageType: 'private'` won't sync.\r\n\r\n```javascript\r\nconst PouchDB = require('pouchdb');\r\nconst db = new PouchDB('/absolute/path/to/databases/nlc');\r\ndb.allDocs({include_docs: true}).then((docs) => {\r\n  docs.rows.map((record) => {\r\n    if(record.doc.storageType !== 'private') {\r\n      console.log('=====\\n', record);\r\n    }\r\n  });\r\n});\r\n```\r\n\r\n- You need to change the db location to the absolute path to your `/databases/nlc` directory, that's most likely the root of your hubot project, unless you are using `HUBOT_DB_PATH`.\r\n- You may need to `npm install pouchdb`"}}
{"actor":{"display_login":"jlpadilla"}}