{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/elastic/issues/70","labels_url":"https://api.github.com/repos/ropensci/elastic/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/elastic/issues/70/comments","events_url":"https://api.github.com/repos/ropensci/elastic/issues/70/events","html_url":"https://github.com/ropensci/elastic/issues/70","id":68568851,"number":70,"title":"how to work with SaaS / hosted ES servers? (https:// access trouble)","user":{"login":"KrishnaPG","id":4610831,"avatar_url":"https://avatars.githubusercontent.com/u/4610831?v=3","gravatar_id":"","url":"https://api.github.com/users/KrishnaPG","html_url":"https://github.com/KrishnaPG","followers_url":"https://api.github.com/users/KrishnaPG/followers","following_url":"https://api.github.com/users/KrishnaPG/following{/other_user}","gists_url":"https://api.github.com/users/KrishnaPG/gists{/gist_id}","starred_url":"https://api.github.com/users/KrishnaPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrishnaPG/subscriptions","organizations_url":"https://api.github.com/users/KrishnaPG/orgs","repos_url":"https://api.github.com/users/KrishnaPG/repos","events_url":"https://api.github.com/users/KrishnaPG/events{/privacy}","received_events_url":"https://api.github.com/users/KrishnaPG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-15T04:14:50Z","updated_at":"2015-04-15T05:25:13Z","closed_at":null,"body":"To utilize hosted ES services (such as http://bonsai.io ), they provide `https://` access.\r\n\r\nFor example, one of our hosted ES clusters is: [https://4akklnpoaa:dt3rqjyspu@ghostlrn-3329452503.us-east-1.bonsai.io](https://4akklnpoaa:dt3rqjyspu@ghostlrn-3329452503.us-east-1.bonsai.io)\r\n\r\nThe above link works great if you put it directly into the browser. But, from this package, it is not clear how to make it work. For example, `connect(\"https://4akklnpoaa:dt3rqjyspu@ghostlrn-3329452503.us-east-1.bonsai.io\")` did not work.\r\n\r\nTried `connect()` with just http:// and it seems connect fine, but has problems with docs_bulk. Below is the troubling code example:\r\n````\r\nconnect(\"http://ghostlrn-3329452503.us-east-1.bonsai.io\", es_user=\"4akklnpoaa\", es_pwd=\"dt3rqjyspu\")\r\nshakespeare <- system.file(\"examples\", \"shakespeare_data.json\", package = \"elastic\")\r\ndocs_bulk(shakespeare)\r\n````\r\nIt gives, `Error in docs_bulk.character(shakespeare) : \r\n  Authorization is required to perform this request. Please provide credentials, or contact support@bonsai.io for assistance.` error."},"comment":{"url":"https://api.github.com/repos/ropensci/elastic/issues/comments/93195583","html_url":"https://github.com/ropensci/elastic/issues/70#issuecomment-93195583","issue_url":"https://api.github.com/repos/ropensci/elastic/issues/70","id":93195583,"user":{"login":"KrishnaPG","id":4610831,"avatar_url":"https://avatars.githubusercontent.com/u/4610831?v=3","gravatar_id":"","url":"https://api.github.com/users/KrishnaPG","html_url":"https://github.com/KrishnaPG","followers_url":"https://api.github.com/users/KrishnaPG/followers","following_url":"https://api.github.com/users/KrishnaPG/following{/other_user}","gists_url":"https://api.github.com/users/KrishnaPG/gists{/gist_id}","starred_url":"https://api.github.com/users/KrishnaPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrishnaPG/subscriptions","organizations_url":"https://api.github.com/users/KrishnaPG/orgs","repos_url":"https://api.github.com/users/KrishnaPG/repos","events_url":"https://api.github.com/users/KrishnaPG/events{/privacy}","received_events_url":"https://api.github.com/users/KrishnaPG/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T05:25:13Z","updated_at":"2015-04-15T05:25:13Z","body":"Sorry - I might have missed the earlier question #69 (searched for previous issues on `https://` and when found none raised the new issue). Some of our students at http://live.my-classes.com/ are using this package to load data into ES and was having issues with https:// - I was trying to find some quick solution / workaround to help them meet their weekly deadlines."}}