GET Timeout Error - httr package - Error in Curl

Hi all,

First q here so bear with me if I get it wrong.

I'm having issues with my connection to URLs and not sure why as I can load sites in my browser but not retrieve them through R. This happens intermittently...

qhand <- ""

Console Returns:

Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached: Connection timed out after 10000 milliseconds

Thanks for you help!

Try adding a timeout parameter:

GET("", timeout(20))

which will get you 20 seconds before giving up.

Thanks @technocrat - seems like it was a permissions issue - I'm running it from work. tears hair out

1 Like

If you know your proxy settings at work you can do this.

  use_proxy(url="your.proxy.ip", port="port", username="user",password="password")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.