{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/elastic/issues/75","labels_url":"https://api.github.com/repos/ropensci/elastic/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/elastic/issues/75/comments","events_url":"https://api.github.com/repos/ropensci/elastic/issues/75/events","html_url":"https://github.com/ropensci/elastic/issues/75","id":88751854,"number":75,"title":"docs_bulk issue","user":{"login":"paulmoto","id":11409521,"avatar_url":"https://avatars.githubusercontent.com/u/11409521?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmoto","html_url":"https://github.com/paulmoto","followers_url":"https://api.github.com/users/paulmoto/followers","following_url":"https://api.github.com/users/paulmoto/following{/other_user}","gists_url":"https://api.github.com/users/paulmoto/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmoto/subscriptions","organizations_url":"https://api.github.com/users/paulmoto/orgs","repos_url":"https://api.github.com/users/paulmoto/repos","events_url":"https://api.github.com/users/paulmoto/events{/privacy}","received_events_url":"https://api.github.com/users/paulmoto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-06-16T14:56:12Z","updated_at":"2015-06-17T14:40:24Z","closed_at":null,"body":"When doing uploads with docs_bulk, it takes a long time, then I get 400 errors and R crashes. I can see that about 90% of my documents are getting indexed before it crashes. Using a PUT with httr works correctly, so the files are formatted correctly. POST did the same thing as docs_bulk, maybe it's using post instead of PUT? I don't see why it should matter which is used, but it apparently does."},"comment":{"url":"https://api.github.com/repos/ropensci/elastic/issues/comments/112827084","html_url":"https://github.com/ropensci/elastic/issues/75#issuecomment-112827084","issue_url":"https://api.github.com/repos/ropensci/elastic/issues/75","id":112827084,"user":{"login":"paulmoto","id":11409521,"avatar_url":"https://avatars.githubusercontent.com/u/11409521?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmoto","html_url":"https://github.com/paulmoto","followers_url":"https://api.github.com/users/paulmoto/followers","following_url":"https://api.github.com/users/paulmoto/following{/other_user}","gists_url":"https://api.github.com/users/paulmoto/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmoto/subscriptions","organizations_url":"https://api.github.com/users/paulmoto/orgs","repos_url":"https://api.github.com/users/paulmoto/repos","events_url":"https://api.github.com/users/paulmoto/events{/privacy}","received_events_url":"https://api.github.com/users/paulmoto/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T14:40:24Z","updated_at":"2015-06-17T14:40:24Z","body":"I figured out my issue. In jsonlite, the toJSON function drops the names of named vectors(had to switch to using lists). This was happening for around 10% of my documents, generating lots of parsing errors, which was the long response. I was able to parse the response I got out of PUT to find the errors, whereas using docs_bulk I crashed when trying to view the response."}}