{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/elastic/issues/148","repository_url":"https://api.github.com/repos/ropensci/elastic","labels_url":"https://api.github.com/repos/ropensci/elastic/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/elastic/issues/148/comments","events_url":"https://api.github.com/repos/ropensci/elastic/issues/148/events","html_url":"https://github.com/ropensci/elastic/issues/148","id":176851094,"number":148,"title":"Connecting to ES with shield","user":{"login":"kickbox","id":7101002,"avatar_url":"https://avatars.githubusercontent.com/u/7101002?v=3","gravatar_id":"","url":"https://api.github.com/users/kickbox","html_url":"https://github.com/kickbox","followers_url":"https://api.github.com/users/kickbox/followers","following_url":"https://api.github.com/users/kickbox/following{/other_user}","gists_url":"https://api.github.com/users/kickbox/gists{/gist_id}","starred_url":"https://api.github.com/users/kickbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kickbox/subscriptions","organizations_url":"https://api.github.com/users/kickbox/orgs","repos_url":"https://api.github.com/users/kickbox/repos","events_url":"https://api.github.com/users/kickbox/events{/privacy}","received_events_url":"https://api.github.com/users/kickbox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-14T08:53:59Z","updated_at":"2016-09-16T09:51:43Z","closed_at":null,"body":"When trying to connect to a ES database with shield,\r\n\r\n`elastic::connect(es_base = 'https://prod.company.com',es_port = 6379,errors=\"complete\", es_user = \"myname\", es_pwd = \"password\")`\r\n\r\nI get the following error \r\n\r\n```\r\nError: \r\n  Failed to connect to https://prod.company.com:6379\r\n  Remember to start Elasticsearch before connecting\r\n```\r\nIs there something wrong that I am doing here?\r\n"},"comment":{"url":"https://api.github.com/repos/ropensci/elastic/issues/comments/247561801","html_url":"https://github.com/ropensci/elastic/issues/148#issuecomment-247561801","issue_url":"https://api.github.com/repos/ropensci/elastic/issues/148","id":247561801,"user":{"login":"kickbox","id":7101002,"avatar_url":"https://avatars.githubusercontent.com/u/7101002?v=3","gravatar_id":"","url":"https://api.github.com/users/kickbox","html_url":"https://github.com/kickbox","followers_url":"https://api.github.com/users/kickbox/followers","following_url":"https://api.github.com/users/kickbox/following{/other_user}","gists_url":"https://api.github.com/users/kickbox/gists{/gist_id}","starred_url":"https://api.github.com/users/kickbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kickbox/subscriptions","organizations_url":"https://api.github.com/users/kickbox/orgs","repos_url":"https://api.github.com/users/kickbox/repos","events_url":"https://api.github.com/users/kickbox/events{/privacy}","received_events_url":"https://api.github.com/users/kickbox/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T09:51:43Z","updated_at":"2016-09-16T09:51:43Z","body":"I tried this\r\n```\r\nconnect(es_host = \"es.mycompany.com\",es_port = 9200, es_transport_schema=\"https\" ,  headers = add_headers(\r\n    Authorization = paste0(\"Basic \", base64_enc(paste0(user, \":\", pwd)))\r\n  )\r\n)\r\n```\r\nIt resulted in \r\n```\r\ntransport:  https \r\nhost:       es.mycompany.com \r\nport:       9200 \r\npath:       NULL \r\nusername:   NULL \r\npassword:   <secret> \r\nerrors:     simple \r\nheaders (names):  Authorization\r\n> x <- Search(config=verbose())\r\nError: Check your connection, server may be down, url or port incorrect, or authentication wrong\r\n```\r\n"}}
{"actor":{"display_login":"kickbox"}}