ropensci / elastic

R client for the Elasticsearch HTTP API
https://docs.ropensci.org/elastic
Other
244 stars 58 forks source link

unable to connect to proxy site #156

Closed rajaramana closed 7 years ago

rajaramana commented 7 years ago

Hi,

I have my elasticsearch behind a proxy. I am trying to insert the data using docs_bulk function in R. I am unable to connect due to the proxy. Could you please help me on how to access data using a proxy?

Thank you,

Br, Raja

sckott commented 7 years ago

thanks for your question @rajaramana

try passing httr::use_proxy() to headers param in elastic::connect

connect(headers = use_proxy(<your proxy settings>))

let me know if that works.

can also set any headers on function calls .eg., Search() by passing in like Search(config = use_proxy(<your proxy settings>))

sckott commented 7 years ago

closing due to inactivity