Timeout was reached: [api.github.com] Resolving timed out after 10000 milliseconds

Relevant Post 1

Continuing the discussion from how do you solve this error:

> devtools::install_github("jalvesaq/colorout", host = "https://api.github.com")
Using github PAT from envvar GITHUB_PAT
错误: Failed to install 'unknown package' from GitHub:
  Timeout was reached: [api.github.com] Resolving timed out after 10000 milliseconds

Relevant Post 2


Relevant Post 3

I had the same issue on windows behind corp proxy.
Resolved by setting the http_proxy and https_proxy environment variables.

Could you please explain what did you do in detail?

On Linux you would just put export http_proxy=xyz and export https_proxy=xyz (all lowercase) in yor shell startup file like your .bashrc and then source ~/.bashrc from your shell (there is no need for this step to be repeated as it will be automatically sourced on login.

On windows follow this guide Set New User and System Environment Variables in Windows | Tutorials. A GUI makes everything unnecessarily complicated.

Originally posted by @wurosh in Failed to connect to api.github.com · Issue #1915 · r-lib/devtools · GitHub


Relevant Post 4


Relevant Post 5

Continuing the discussion from [Issue] Encode / Decode : Running `chunk` and `knit` documents:

Please ask your questions about R Markdown here.

Using github PAT from envvar GITHUB_PAT
错误: Failed to install 'unknown package' from GitHub:
  Timeout was reached: [api.github.com] Resolving timed out after 10000 milliseconds

Tried to subscribe Ivacy VPN as below to set the proxy but doesn't work... Somebody tune it?

library(httr)
with_config(use_proxy(...), install_github(...))

Reference :

This topic was automatically closed 7 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.