{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/700","labels_url":"https://api.github.com/repos/Mashape/kong/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/700/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/700/events","html_url":"https://github.com/Mashape/kong/issues/700","id":115920265,"number":700,"title":"Long list of blacklist IPs generates {\"message\":\"Cannot parse JSON body\"}","user":{"login":"travisyates","id":15633533,"avatar_url":"https://avatars.githubusercontent.com/u/15633533?v=3","gravatar_id":"","url":"https://api.github.com/users/travisyates","html_url":"https://github.com/travisyates","followers_url":"https://api.github.com/users/travisyates/followers","following_url":"https://api.github.com/users/travisyates/following{/other_user}","gists_url":"https://api.github.com/users/travisyates/gists{/gist_id}","starred_url":"https://api.github.com/users/travisyates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisyates/subscriptions","organizations_url":"https://api.github.com/users/travisyates/orgs","repos_url":"https://api.github.com/users/travisyates/repos","events_url":"https://api.github.com/users/travisyates/events{/privacy}","received_events_url":"https://api.github.com/users/travisyates/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-09T17:03:03Z","updated_at":"2015-11-09T18:39:05Z","closed_at":null,"body":"Kong version: 0.5.1\r\nOS: Ubuntu 15.04\r\n\r\nWhen attempting to submit PATCH requests for the ip-restriction plugin with a list of blacklist IPs (config.blacklist), the request begins failing somewhere around 10KB. The point of failure seems to vary slightly between cURL (~10.2k) and Postman (~10.8k). To construct the list of IPs, I took the CIDR blocks from Spamhaus's drop and edrop lists (http://www.spamhaus.org/drop/drop.txt and http://www.spamhaus.org/drop/edrop.txt). Below the threshold, the modifications take effect. Above the threshold, Kong returns {\"message\":\"Cannot parse JSON body\"}. I will submit captures of the output via email as they are lengthy and I do not have permission to post attachments in this repo."},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/155150397","html_url":"https://github.com/Mashape/kong/issues/700#issuecomment-155150397","issue_url":"https://api.github.com/repos/Mashape/kong/issues/700","id":155150397,"user":{"login":"thefosk","id":964813,"avatar_url":"https://avatars.githubusercontent.com/u/964813?v=3","gravatar_id":"","url":"https://api.github.com/users/thefosk","html_url":"https://github.com/thefosk","followers_url":"https://api.github.com/users/thefosk/followers","following_url":"https://api.github.com/users/thefosk/following{/other_user}","gists_url":"https://api.github.com/users/thefosk/gists{/gist_id}","starred_url":"https://api.github.com/users/thefosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefosk/subscriptions","organizations_url":"https://api.github.com/users/thefosk/orgs","repos_url":"https://api.github.com/users/thefosk/repos","events_url":"https://api.github.com/users/thefosk/events{/privacy}","received_events_url":"https://api.github.com/users/thefosk/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T18:39:05Z","updated_at":"2015-11-09T18:39:05Z","body":"> Otherwise nginx uses multiple buffers and thus the admin API is only receiving a chunk of the JSON\r\n\r\nIf this was the case, the admin API should wait for all the chunks before processing the request."}}