{"action":"created","issue":{"url":"https://api.github.com/repos/richardschneider/ecom/issues/91","labels_url":"https://api.github.com/repos/richardschneider/ecom/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/richardschneider/ecom/issues/91/comments","events_url":"https://api.github.com/repos/richardschneider/ecom/issues/91/events","html_url":"https://github.com/richardschneider/ecom/issues/91","id":118602495,"number":91,"title":"POST media","user":{"login":"richardschneider","id":631061,"avatar_url":"https://avatars.githubusercontent.com/u/631061?v=3","gravatar_id":"","url":"https://api.github.com/users/richardschneider","html_url":"https://github.com/richardschneider","followers_url":"https://api.github.com/users/richardschneider/followers","following_url":"https://api.github.com/users/richardschneider/following{/other_user}","gists_url":"https://api.github.com/users/richardschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/richardschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardschneider/subscriptions","organizations_url":"https://api.github.com/users/richardschneider/orgs","repos_url":"https://api.github.com/users/richardschneider/repos","events_url":"https://api.github.com/users/richardschneider/events{/privacy}","received_events_url":"https://api.github.com/users/richardschneider/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/richardschneider/ecom/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-24T12:52:35Z","updated_at":"2015-11-27T09:10:43Z","closed_at":null,"body":"POST media with `Prefer: return=representation`\r\n\r\n````\r\nUnhandled rejection TypeError: val.hasOwnProperty is not a function\r\n    at JSONPath._trace (/home/ubuntu/workspace/node_modules/JSONPath/lib/jsonpath.js:141:20)\r\n    at /home/ubuntu/workspace/node_modules/JSONPath/lib/jsonpath.js:153:29\r\n    at JSONPath._walk (/home/ubuntu/workspace/node_modules/JSONPath/lib/jsonpath.js:195:17)\r\n    at JSONPath._trace (/home/ubuntu/workspace/node_modules/JSONPath/lib/jsonpath.js:151:14)\r\n    at JSONPath.evaluate (/home/ubuntu/workspace/node_modules/JSONPath/lib/jsonpath.js:72:27)\r\n    at new JSONPath (/home/ubuntu/workspace/node_modules/JSONPath/lib/jsonpath.js:57:24)\r\n    at JSONPath (/home/ubuntu/workspace/node_modules/JSONPath/lib/jsonpath.js:39:20)\r\n    at redactDocument (/home/ubuntu/workspace/lib/server/redact.js:28:19)\r\n    at ServerResponse.res.send (/home/ubuntu/workspace/lib/server/redact.js:44:16)\r\n    at ServerResponse.res.send (/home/ubuntu/workspace/lib/server/metadata.js:42:21)\r\n    at /home/ubuntu/workspace/lib/server/media.js:26:14\r\n    at tryCatcher (/home/ubuntu/workspace/node_modules/bluebird/js/release/util.js:11:23)\r\n    at Promise._settlePromiseFromHandler (/home/ubuntu/workspace/node_modules/bluebird/js/release/promise.js:488:31)\r\n    at Promise._settlePromise (/home/ubuntu/workspace/node_modules/bluebird/js/release/promise.js:545:18)\r\n    at Promise._settlePromiseCtx (/home/ubuntu/workspace/node_modules/bluebird/js/release/promise.js:582:10)\r\n    at Async._drainQueue (/home/ubuntu/workspace/node_modules/bluebird/js/release/async.js:130:12)\r\n````"},"comment":{"url":"https://api.github.com/repos/richardschneider/ecom/issues/comments/160081622","html_url":"https://github.com/richardschneider/ecom/issues/91#issuecomment-160081622","issue_url":"https://api.github.com/repos/richardschneider/ecom/issues/91","id":160081622,"user":{"login":"richardschneider","id":631061,"avatar_url":"https://avatars.githubusercontent.com/u/631061?v=3","gravatar_id":"","url":"https://api.github.com/users/richardschneider","html_url":"https://github.com/richardschneider","followers_url":"https://api.github.com/users/richardschneider/followers","following_url":"https://api.github.com/users/richardschneider/following{/other_user}","gists_url":"https://api.github.com/users/richardschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/richardschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardschneider/subscriptions","organizations_url":"https://api.github.com/users/richardschneider/orgs","repos_url":"https://api.github.com/users/richardschneider/repos","events_url":"https://api.github.com/users/richardschneider/events{/privacy}","received_events_url":"https://api.github.com/users/richardschneider/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T09:10:43Z","updated_at":"2015-11-27T09:10:43Z","body":"Looks like the issue is in JSON Path and `hasOwnProperty`, more info as always on [Stack Overflow](http://stackoverflow.com/questions/16585209/node-js-object-object-has-no-method-hasownproperty)"}}