googleway icon indicating copy to clipboard operation
googleway copied to clipboard

#No valid internet connection (tested using curl::has_internet()

Open juansecal opened this issue 7 years ago • 5 comments

googleway uses package CURL, i managed to set options in RCURL, but I cant define proxy arguments on CURL.

juansecal avatar Jun 13 '18 16:06 juansecal

Please see issue #26 , I think this might address your issue.

SymbolixAU avatar Jun 14 '18 00:06 SymbolixAU

Thank you, adding the argument curl_proxy ='google.com' doesn't help

juansecal avatar Jun 14 '18 08:06 juansecal

I tried the following


curl_proxy <- function(url, verbose = TRUE){

  h <- new_handle(verbose = verbose, proxy = myproxy, proxyauth = 8, proxyuserpwd = "username:psw")
  curl(url, handle = h)
}

con <- curl_proxy("https://httpbin.org/get")
readLines(con)
google_places(search_string = "Agence societe Generale, Paris 75015",
              key = key ,curl_proxy =curl_proxy("https://google.com"))


con <- curl_proxy("https://httpbin.org/get") seems to work, but I keep receiving error

Can not retrieve results. No valid internet connection (tested using curl::has_internet(

After google_places function.

juansecal avatar Jun 14 '18 08:06 juansecal

@juansecal What about simply using this approach

curl_proxy = 'google.com'

Unfortunately I can't test nor reproduce your issue, as I'm not behind any firewall.

SymbolixAU avatar Jun 19 '18 03:06 SymbolixAU

Did it work. I also have same issue

satyamedidi avatar Jan 29 '20 20:01 satyamedidi