{"action":"created","issue":{"url":"https://api.github.com/repos/dherault/serverless-offline/issues/81","repository_url":"https://api.github.com/repos/dherault/serverless-offline","labels_url":"https://api.github.com/repos/dherault/serverless-offline/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/dherault/serverless-offline/issues/81/comments","events_url":"https://api.github.com/repos/dherault/serverless-offline/issues/81/events","html_url":"https://github.com/dherault/serverless-offline/issues/81","id":171360692,"number":81,"title":"SyntaxError: Uncaught error: Unexpected end of input on Empty POST body","user":{"login":"zachmanpro","id":1438924,"avatar_url":"https://avatars.githubusercontent.com/u/1438924?v=3","gravatar_id":"","url":"https://api.github.com/users/zachmanpro","html_url":"https://github.com/zachmanpro","followers_url":"https://api.github.com/users/zachmanpro/followers","following_url":"https://api.github.com/users/zachmanpro/following{/other_user}","gists_url":"https://api.github.com/users/zachmanpro/gists{/gist_id}","starred_url":"https://api.github.com/users/zachmanpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachmanpro/subscriptions","organizations_url":"https://api.github.com/users/zachmanpro/orgs","repos_url":"https://api.github.com/users/zachmanpro/repos","events_url":"https://api.github.com/users/zachmanpro/events{/privacy}","received_events_url":"https://api.github.com/users/zachmanpro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-16T09:10:40Z","updated_at":"2016-08-16T20:59:31Z","closed_at":null,"body":"When POSTing to an endpoint with an empty body and header the following error occurs:\r\n\r\n Debug: internal, implementation, error\r\n    SyntaxError: Uncaught error: Unexpected end of input\r\n  at Object.parse (native)\r\n  at authFunctions.server.route.handler.createLambdaContext (.../node_modules/serverless-offline/src/index.js:378:40)\r\n  at Object.exports.execute.internals.prerequisites.internals.handler.callback [as handler] (.../node_modules/hapi/lib/handler.js:96:36)\r\n  at .../node_modules/hapi/lib/handler.js:30:23\r\n  at [object Object].internals.Protect.run.finish [as run] (.../node_modules/hapi/lib/protect.js:64:5)\r\n  at exports.execute.finalize (.../node_modules/hapi/lib/handler.js:24:22)\r\n  at each (.../node_modules/hapi/lib/request.js:383:16)\r\n  at iterate (.../node_modules/items/lib/index.js:36:13)\r\n  at done (.../node_modules/items/lib/index.js:28:25)\r\n  at internals.Auth.test.internals.Auth.payload.finalize (.../node_modules/hapi/lib/auth.js:223:16)\r\n  at each (.../node_modules/hapi/lib/request.js:383:16)\r\n  at iterate (.../node_modules/items/lib/index.js:36:13)\r\n  at done (.../node_modules/items/lib/index.js:28:25)\r\n  at onParsed (.../node_modules/hapi/lib/route.js:402:20)\r\n  at .../node_modules/hapi/lib/route.js:423:20\r\n  at next (.../node_modules/subtext/lib/index.js:43:16)\r\n  at .../node_modules/subtext/lib/index.js:232:16\r\n  at finish (.../node_modules/wreck/lib/index.js:328:20)\r\n  at wrapped (.../node_modules/wreck/node_modules/hoek/lib/index.js:871:20)\r\n  at [object Object].onReaderFinish (.../node_modules/wreck/lib/index.js:399:16)\r\n  at [object Object].g (events.js:260:16)\r\n  at emitNone (events.js:72:20)\r\n  at [object Object].emit (events.js:166:7)\r\n  at finishMaybe (_stream_writable.js:478:14)\r\n  at endWritable (_stream_writable.js:488:3)\r\n  at [object Object].Writable.end (_stream_writable.js:453:5)\r\n  at IncomingMessage.onend (_stream_readable.js:498:10)\r\n  at IncomingMessage.g (events.js:260:16)\r\n  at emitNone (events.js:72:20)\r\n  at IncomingMessage.emit (events.js:166:7)\r\n  at endReadableNT (_stream_readable.js:913:12)\r\n  at nextTickCallbackWith2Args (node.js:442:9)\r\n  at process._tickDomainCallback (node.js:397:17)"},"comment":{"url":"https://api.github.com/repos/dherault/serverless-offline/issues/comments/240236953","html_url":"https://github.com/dherault/serverless-offline/issues/81#issuecomment-240236953","issue_url":"https://api.github.com/repos/dherault/serverless-offline/issues/81","id":240236953,"user":{"login":"rogemita","id":354616,"avatar_url":"https://avatars.githubusercontent.com/u/354616?v=3","gravatar_id":"","url":"https://api.github.com/users/rogemita","html_url":"https://github.com/rogemita","followers_url":"https://api.github.com/users/rogemita/followers","following_url":"https://api.github.com/users/rogemita/following{/other_user}","gists_url":"https://api.github.com/users/rogemita/gists{/gist_id}","starred_url":"https://api.github.com/users/rogemita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogemita/subscriptions","organizations_url":"https://api.github.com/users/rogemita/orgs","repos_url":"https://api.github.com/users/rogemita/repos","events_url":"https://api.github.com/users/rogemita/events{/privacy}","received_events_url":"https://api.github.com/users/rogemita/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T20:59:31Z","updated_at":"2016-08-16T20:59:31Z","body":"same here"}}
{"actor":{"display_login":"rogemita"}}