{"action":"created","issue":{"url":"https://api.github.com/repos/jsreport/jsreport/issues/284","repository_url":"https://api.github.com/repos/jsreport/jsreport","labels_url":"https://api.github.com/repos/jsreport/jsreport/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/jsreport/jsreport/issues/284/comments","events_url":"https://api.github.com/repos/jsreport/jsreport/issues/284/events","html_url":"https://github.com/jsreport/jsreport/issues/284","id":222324483,"node_id":"MDU6SXNzdWUyMjIzMjQ0ODM=","number":284,"title":"Error: Template must contains _id, shortid or content attribute.","user":{"login":"wandiong","id":16790405,"node_id":"MDQ6VXNlcjE2NzkwNDA1","avatar_url":"https://avatars1.githubusercontent.com/u/16790405?v=4","gravatar_id":"","url":"https://api.github.com/users/wandiong","html_url":"https://github.com/wandiong","followers_url":"https://api.github.com/users/wandiong/followers","following_url":"https://api.github.com/users/wandiong/following{/other_user}","gists_url":"https://api.github.com/users/wandiong/gists{/gist_id}","starred_url":"https://api.github.com/users/wandiong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wandiong/subscriptions","organizations_url":"https://api.github.com/users/wandiong/orgs","repos_url":"https://api.github.com/users/wandiong/repos","events_url":"https://api.github.com/users/wandiong/events{/privacy}","received_events_url":"https://api.github.com/users/wandiong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-18T07:19:07Z","updated_at":"2018-07-05T22:00:52Z","closed_at":"2017-04-18T08:49:02Z","author_association":"NONE","body":"hi \r\n\r\nI've eccountered this error\r\n\r\n> Error: Template must contains _id, shortid or content attribute.\r\n\r\nwhy it happens?\r\n\r\ni tried adding shortid as it asked to template\r\n\r\nand it returning\r\n\r\n> Unable to find specified template or user doesnt have permissions to read it: H1SRTVmRe\r\n\r\n\r\nanybody know more or less why this happened?\r\n\r\nthanks before :)"},"comment":{"url":"https://api.github.com/repos/jsreport/jsreport/issues/comments/402865640","html_url":"https://github.com/jsreport/jsreport/issues/284#issuecomment-402865640","issue_url":"https://api.github.com/repos/jsreport/jsreport/issues/284","id":402865640,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjg2NTY0MA==","user":{"login":"ggoforth","id":1167712,"node_id":"MDQ6VXNlcjExNjc3MTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1167712?v=4","gravatar_id":"","url":"https://api.github.com/users/ggoforth","html_url":"https://github.com/ggoforth","followers_url":"https://api.github.com/users/ggoforth/followers","following_url":"https://api.github.com/users/ggoforth/following{/other_user}","gists_url":"https://api.github.com/users/ggoforth/gists{/gist_id}","starred_url":"https://api.github.com/users/ggoforth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggoforth/subscriptions","organizations_url":"https://api.github.com/users/ggoforth/orgs","repos_url":"https://api.github.com/users/ggoforth/repos","events_url":"https://api.github.com/users/ggoforth/events{/privacy}","received_events_url":"https://api.github.com/users/ggoforth/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T22:00:52Z","updated_at":"2018-07-05T22:00:52Z","author_association":"NONE","body":"I'm getting this error just running the example directly as it is from the home page.  Do I need to add additional config to make the example on the homepage run?  My server just looks like:\r\n\r\n```\r\nconst http = require('http');\r\nconst http = require('http');\r\nconst http = require('http');\r\nconst jsreport = require('jsreport');\r\n\r\nhttp.createServer((req, res) => {\r\n  jsreport.render(\"<h1>Hello world</h1>\").then((out)  => {\r\n    out.stream.pipe(res);\r\n  }).catch((e) => {\r\n    res.end(e.message);\r\n  });\r\n\r\n}).listen(1337, '127.0.0.1');\r\n```"}}
{"actor":{"display_login":"ggoforth"}}