{"action":"created","issue":{"url":"https://api.github.com/repos/koglerjs/threaditjs/issues/7","repository_url":"https://api.github.com/repos/koglerjs/threaditjs","labels_url":"https://api.github.com/repos/koglerjs/threaditjs/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/koglerjs/threaditjs/issues/7/comments","events_url":"https://api.github.com/repos/koglerjs/threaditjs/issues/7/events","html_url":"https://github.com/koglerjs/threaditjs/issues/7","id":141256579,"number":7,"title":"Inexplicable error response creating a thread comment.","user":{"login":"ralphbecket","id":1720448,"avatar_url":"https://avatars.githubusercontent.com/u/1720448?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphbecket","html_url":"https://github.com/ralphbecket","followers_url":"https://api.github.com/users/ralphbecket/followers","following_url":"https://api.github.com/users/ralphbecket/following{/other_user}","gists_url":"https://api.github.com/users/ralphbecket/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphbecket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphbecket/subscriptions","organizations_url":"https://api.github.com/users/ralphbecket/orgs","repos_url":"https://api.github.com/users/ralphbecket/repos","events_url":"https://api.github.com/users/ralphbecket/events{/privacy}","received_events_url":"https://api.github.com/users/ralphbecket/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-16T12:20:40Z","updated_at":"2016-03-16T21:04:56Z","closed_at":null,"body":"Hi, I'm testing a new ThreadIt client I've written.  When I send a request to http://api.threadit.com/comments/create (method: POST, payload: {\"text\":\"asdasdfa\", \"parent\":\"RaxJjo\"}) I get an error response with the following message:\r\n\r\n> TypeError: Cannot call method &#39;replace&#39; of undefined<br>Please report this to https://github.com/chjj/marked.<br> &nbsp; &nbsp;at Lexer.lex (/home/ec2-user/threaditjs/node_modules/marked/lib/marked.js:138:6)<br> &nbsp; &nbsp;at Function.Lexer.lex (/home/ec2-user/threaditjs/node_modules/marked/lib/marked.js:129:16)<br> &nbsp; &nbsp;at marked (/home/ec2-user/threaditjs/node_modules/marked/lib/marked.js:1218:31)<br> &nbsp; &nbsp;at Object.module.exports.newComment (/home/ec2-user/threaditjs/lib/threads.js:142:10)<br> &nbsp; &nbsp;at module.exports (/home/ec2-user/threaditjs/lib/api.js:110:24)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/home/ec2-user/threaditjs/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at next (/home/ec2-user/threaditjs/node_modules/express/lib/router/route.js:131:13)<br> &nbsp; &nbsp;at Route.dispatch (/home/ec2-user/threaditjs/node_modules/express/lib/router/route.js:112:3)<br> &nbsp; &nbsp;at Layer.handle [as handle_request] (/home/ec2-user/threaditjs/node_modules/express/lib/router/layer.js:95:5)<br> &nbsp; &nbsp;at /home/ec2-user/threaditjs/node_modules/express/lib/router/index.js:277:22\r\n\r\nAny advice?"},"comment":{"url":"https://api.github.com/repos/koglerjs/threaditjs/issues/comments/197549016","html_url":"https://github.com/koglerjs/threaditjs/issues/7#issuecomment-197549016","issue_url":"https://api.github.com/repos/koglerjs/threaditjs/issues/7","id":197549016,"user":{"login":"ralphbecket","id":1720448,"avatar_url":"https://avatars.githubusercontent.com/u/1720448?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphbecket","html_url":"https://github.com/ralphbecket","followers_url":"https://api.github.com/users/ralphbecket/followers","following_url":"https://api.github.com/users/ralphbecket/following{/other_user}","gists_url":"https://api.github.com/users/ralphbecket/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphbecket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphbecket/subscriptions","organizations_url":"https://api.github.com/users/ralphbecket/orgs","repos_url":"https://api.github.com/users/ralphbecket/repos","events_url":"https://api.github.com/users/ralphbecket/events{/privacy}","received_events_url":"https://api.github.com/users/ralphbecket/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T21:04:56Z","updated_at":"2016-03-16T21:04:56Z","body":"I'm just using plain old XMLHTTPRequest with `xhr.send(JSON.stringify({text: ..., parent: ...})`."}}