# ERROR: GitError(Code:ERROR, Class:OS, failed to send request: A connection with the server could not be established )

**URL:** <https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192>\
**Category:** New to Julia\
**Created:** [April 6, 2018, 3:33am UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192 "2018-04-06T03:33:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chasqui](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Chasqui](https://discourse.julialang.org/u/Chasqui)\
**Post date:** [April 6, 2018, 3:33am UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192/1 "2018-04-06T03:33:20Z")

</div>

I’m trying to install Pkg.add(“DataFrames”) but I get the following message. Any idea what could be the problem?

INFO: Cloning METADATA from [https://github.com/JuliaLang/METADATA.jl](https://github.com/JuliaLang/METADATA.jl)  
ERROR: GitError(Code:ERROR, Class:OS, failed to send request: A connection with the server could not be established  
)  
Stacktrace:  
[1] macro expansion at .\libgit2\error.jl:99 [inlined]  
[2] clone(::String, ::String, ::Base.LibGit2.CloneOptions) at .\libgit2\repository.jl:276  
[3] #clone#100(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractCredentials}, ::Function, ::String, ::String) at .\libgit2\libgit2.jl:562  
[4] (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, ::String, ::String) at .\<missing\>:0  
[5] (::Base.Pkg.Dir.##8#10{String,String})() at .\pkg\dir.jl:55  
[6] cd(::Base.Pkg.Dir.##8#10{String,String}, ::String) at .\file.jl:59  
[7] init(::String, ::String) at .\pkg\dir.jl:53  
[8] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N) at .\pkg\dir.jl:28  
[9] add(::String) at .\pkg\pkg.jl:117

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [April 6, 2018, 6:24am UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192/2 "2018-04-06T06:24:47Z")

</div>

Looks like a network glitch. Check that `github.com` is reachable, eg with `ping`, then try again.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [April 6, 2018, 6:48am UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192/4 "2018-04-06T06:48:59Z")

</div>

The error message seems different from what the “easy fix” fixes.

---

<div class="post-metadata">

**Author:** ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Post date:** [April 6, 2018, 8:37am UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192/5 "2018-04-06T08:37:41Z")

</div>

I think you are correct. I deleted my post.

---

<div class="post-metadata">

**Author:** ![Chasqui](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Chasqui](https://discourse.julialang.org/u/Chasqui)\
**Post date:** [April 6, 2018, 12:01pm UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192/6 "2018-04-06T12:01:40Z")

</div>

Thank you for your response. I tried _ping_ and it seems that I have connection with [gitbub.com](http://gitbub.com)  
I tried again Pkg.add(“DataFrames”) and I got the same error message.

---

<div class="post-metadata">

**Author:** ![Ultima](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ultima/32/4244_2.png) [@Ultima](https://discourse.julialang.org/u/Ultima)\
**Post date:** [April 6, 2018, 4:33pm UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192/7 "2018-04-06T16:33:02Z")

</div>

Follow the **manual** fix in this post, **not** the **“easy fix”**

solution

> [@Errors for Git / Pkg](https://discourse.julialang.org/t/errors-for-git-pkg/9351/14):
>
> Finally got a fix. The Easy fix on this page didn’t cut it. [Update to enable TLS 1.1 and TLS 1.2 as default secure protocols in WinHTTP in Windows](https://support.microsoft.com/en-us/help/3140245/update-to-enable-tls-1-1-and-tls-1-2-as-a-default-secure-protocols-in) The quick-fix didn’t patch the Webio.dll and the Winhttp.dll in the Windows-folders. So I went to the update-catalog and downloaded the proper file for my system: [Microsoft Update Catalog](https://www.catalog.update.microsoft.com/search.aspx?q=kb3140245) Patched,restarted, works.

---

<div class="post-metadata">

**Author:** ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Post date:** [June 20, 2018, 8:39am UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192/8 "2018-06-20T08:39:48Z")

</div>

I’m reviving this post.  
I’m on windows 8 and the proposed solutions do not work for me.

In the list given at [https://www.catalog.update.microsoft.com/search.aspx?q=kb3140245](https://www.catalog.update.microsoft.com/search.aspx?q=kb3140245) , none of the updates seem to apply to windows 8. I updated to .Net 4.5, but to no avail.  
I would really appreciate some help.  
Many thanks in advance  
Olivier

---

<div class="post-metadata">

**Author:** ![Ultima](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ultima/32/4244_2.png) [@Ultima](https://discourse.julialang.org/u/Ultima)\
**Post date:** [June 20, 2018, 1:47pm UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192/9 "2018-06-20T13:47:27Z")

</div>

I would try either this:

> Update für Windows Embedded 8 Standard für x64-Systeme (KB3140245)

or this:

> Update für Windows Embedded 8 Standard (KB3140245)

depending on your system (32/64 Bit Version).  
The quick fix didn’t work for my systems, hence the workaround for a manual patch. I don’t know what the patches do in particular, but the registry hacks in the kb-article didn’t succeed either:

 ![2%20as%20a%20default%20secure%20protocols%20in%20WinHTTP%20in%20Windows](https://global.discourse-cdn.com/julialang/original/3X/5/8/58225b7e8fd860d3fade1488d05be8ac6cf9e552.png)

---

<div class="post-metadata">

**Author:** ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Post date:** [June 21, 2018, 7:21am UTC](https://discourse.julialang.org/t/error-giterror-code-error-class-os-failed-to-send-request-a-connection-with-the-server-could-not-be-established/10192/10 "2018-06-21T07:21:12Z")

</div>

Thanks for your reply.

Unfortunately KB3140245 does not work.

I don’t see any other options.  
I will contact my system administrator.
