# Troubleshooting libgit2

**URL:** <https://discourse.julialang.org/t/troubleshooting-libgit2/1542>\
**Category:** General Usage\
**Tags:** windows, proxy\
**Created:** [January 17, 2017, 11:52am UTC](https://discourse.julialang.org/t/troubleshooting-libgit2/1542 "2017-01-17T11:52:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [January 19, 2017, 3:08am UTC](https://discourse.julialang.org/t/troubleshooting-libgit2/1542/5 "2017-01-19T03:08:29Z")

</div>

Cross-ref suggestion from another thread: don’t use credentials, if you can avoid it:

> [@Pkg.add() through proxy fails on Julia 0.5, Windows](https://discourse.julialang.org/t/pkg-add-through-proxy-fails-on-julia-0-5-windows/687/15):
>
> I think libgit2 might not parse user credentials in the proxy setting properly. Specifying username and password does not work for me on Julia v0.5 (libgit2). It did work on Julia v0.4 (git). proxy = http://username:password@server:port results in the following error on Julia v0.5: ERROR: GitError(Code:ERROR, Class:OS, Failed to set proxy: The parameter is incorrect.) Omitting the username and password seems to work: proxy = http://server:port So this is what I have now in .gitconfig in h…

---

_[View the full topic](https://discourse.julialang.org/t/troubleshooting-libgit2/1542)._
