payload: {"action":"created","issue":{"url":"https://api.github.com/repos/localstack/localstack/issues/753","repository_url":"https://api.github.com/repos/localstack/localstack","labels_url":"https://api.github.com/repos/localstack/localstack/issues/753/labels{/name}","comments_url":"https://api.github.com/repos/localstack/localstack/issues/753/comments","events_url":"https://api.github.com/repos/localstack/localstack/issues/753/events","html_url":"https://github.com/localstack/localstack/issues/753","id":321215981,"node_id":"MDU6SXNzdWUzMjEyMTU5ODE=","number":753,"title":"Kinesis putRecords error","user":{"login":"ewaltman","id":2886892,"node_id":"MDQ6VXNlcjI4ODY4OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/2886892?v=4","gravatar_id":"","url":"https://api.github.com/users/ewaltman","html_url":"https://github.com/ewaltman","followers_url":"https://api.github.com/users/ewaltman/followers","following_url":"https://api.github.com/users/ewaltman/following{/other_user}","gists_url":"https://api.github.com/users/ewaltman/gists{/gist_id}","starred_url":"https://api.github.com/users/ewaltman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewaltman/subscriptions","organizations_url":"https://api.github.com/users/ewaltman/orgs","repos_url":"https://api.github.com/users/ewaltman/repos","events_url":"https://api.github.com/users/ewaltman/events{/privacy}","received_events_url":"https://api.github.com/users/ewaltman/received_events","type":"User","site_admin":false},"labels":[{"id":468888567,"node_id":"MDU6TGFiZWw0Njg4ODg1Njc=","url":"https://api.github.com/repos/localstack/localstack/labels/bug","name":"bug","color":"ee0701","default":true},{"id":596297464,"node_id":"MDU6TGFiZWw1OTYyOTc0NjQ=","url":"https://api.github.com/repos/localstack/localstack/labels/needs-triaging","name":"needs-triaging","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-08T14:41:22Z","updated_at":"2019-07-30T17:27:49Z","closed_at":null,"author_association":"NONE","body":"It seems that putRecords causes the following error:\r\n\r\n```\r\nStarting mock Kinesis (http port 4568)...\r\nStarting mock S3 (http port 4572)...\r\nStarting mock Firehose service (http port 4573)...\r\nStarting mock Lambda service (http port 4574)...\r\nListening at http://:::4565\r\n* Running on http://0.0.0.0:4563/ (Press CTRL+C to quit)\r\n127.0.0.1 - - [08/May/2018 13:52:25] \"GET / HTTP/1.1\" 200 -\r\nReady.\r\nr127.0.0.1 - - [08/May/2018 13:56:43] \"PUT /prd1541-qa1-vf-sms-send-stream-archive HTTP/1.1\" 200 -\r\n127.0.0.1 - - [08/May/2018 13:56:43] \"HEAD /prd1541-qa1-vf-sms-send-stream-archive HTTP/1.1\" 200 -\r\n2018-05-08T13:56:43:ERROR:localstack.services.generic_proxy: Error forwarding request: 'Records' Traceback (most recent call last):\r\n  File \"/opt/code/localstack/localstack/services/generic_proxy.py\", line 215, in forward\r\n    updated_response = self.proxy.update_listener.return_response(**kwargs)\r\n  File \"/opt/code/localstack/localstack/services/kinesis/kinesis_listener.py\", line 49, in return_response\r\n    response_records = response_body['Records']\r\nKeyError: 'Records'\r\n\r\n2018-05-08T13:56:43:ERROR:localstack.services.generic_proxy: Error forwarding request: 'Records' Traceback (most recent call last):\r\n  File \"/opt/code/localstack/localstack/services/generic_proxy.py\", line 215, in forward\r\n    updated_response = self.proxy.update_listener.return_response(**kwargs)\r\n  File \"/opt/code/localstack/localstack/services/kinesis/kinesis_listener.py\", line 49, in return_response\r\n    response_records = response_body['Records']\r\nKeyError: 'Records'\r\n\r\n2018-05-08T13:56:43:ERROR:localstack.services.generic_proxy: Error forwarding request: 'Records' Traceback (most recent call last):\r\n  File \"/opt/code/localstack/localstack/services/generic_proxy.py\", line 215, in forward\r\n    updated_response = self.proxy.update_listener.return_response(**kwargs)\r\n  File \"/opt/code/localstack/localstack/services/kinesis/kinesis_listener.py\", line 49, in return_response\r\n    response_records = response_body['Records']\r\nKeyError: 'Records'\r\n```\r\n\r\nI'm using the latest localstack image and my `Kinesis.putRecords` call goes through the Javascript AWS SDK: \r\n\r\n```\r\n...\r\n  const result = await client.putRecords({\r\n    StreamName,\r\n    Records: records.map(data => ({\r\n      Data: new Buffer(JSON.stringify(data)),\r\n      PartitionKey: 'testPartition'\r\n    }))\r\n  }).promise();\r\n...\r\n```\r\n\r\nIt seems like there's a mismatch int the expected format in `kinesis_listener.py`."},"comment":{"url":"https://api.github.com/repos/localstack/localstack/issues/comments/516515636","html_url":"https://github.com/localstack/localstack/issues/753#issuecomment-516515636","issue_url":"https://api.github.com/repos/localstack/localstack/issues/753","id":516515636,"node_id":"MDEyOklzc3VlQ29tbWVudDUxNjUxNTYzNg==","user":{"login":"benwaffle","id":1713819,"node_id":"MDQ6VXNlcjE3MTM4MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1713819?v=4","gravatar_id":"","url":"https://api.github.com/users/benwaffle","html_url":"https://github.com/benwaffle","followers_url":"https://api.github.com/users/benwaffle/followers","following_url":"https://api.github.com/users/benwaffle/following{/other_user}","gists_url":"https://api.github.com/users/benwaffle/gists{/gist_id}","starred_url":"https://api.github.com/users/benwaffle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benwaffle/subscriptions","organizations_url":"https://api.github.com/users/benwaffle/orgs","repos_url":"https://api.github.com/users/benwaffle/repos","events_url":"https://api.github.com/users/benwaffle/events{/privacy}","received_events_url":"https://api.github.com/users/benwaffle/received_events","type":"User","site_admin":false},"created_at":"2019-07-30T17:27:49Z","updated_at":"2019-07-30T17:27:49Z","author_association":"NONE","body":"so localstack is buggy in the assumption that this line will work? https://github.com/localstack/localstack/blob/master/localstack/services/kinesis/kinesis_listener.py#L55"}}
other: {"actor":{"display_login":"benwaffle"}}