# VS code Julia 1.8 - could not download https://juliahub.com/registries - exception = HTTP/1.1 401 Unauthorized while requesting https://juliahub.com/registries

**URL:** <https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791>\
**Category:** Tooling\
**Created:** [September 5, 2022, 9:17am UTC](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791 "2022-09-05T09:17:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefkuypers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefkuypers/32/19185_2.png) [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Post date:** [September 5, 2022, 9:17am UTC](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791/1 "2022-09-05T09:17:47Z")

</div>

I keep getting the following error:

```julia
Warning: could not download https://juliahub.com/registries
│ exception = HTTP/1.1 401 Unauthorized while requesting https://juliahub.com/registries
└ @ Pkg.Registry /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-6.0/build/default-macmini-x64-6-0/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Pkg/src/Registry/Registry.jl:68

```

I have tried the solutions presented in [this thread](https://discourse.julialang.org/t/juliapro1-5-0-could-not-download-https-pkg-juliahub-com-registries/44811) but to no avail. Trying to authenticate [here](https://pkg.juliacomputing.com/auth) doesn’t work either. The page doesn’t even show all the authentication options. It looks as if there is a view on the content of the page which is too small for all the content to show.

I’m using the latest version of VS code (1.70.2) on Mac OS (12.5.1) and Julia extension v1.7.6.

Hope someone can help me solve this issue.

Kind regards,  
Stef

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [September 5, 2022, 9:25am UTC](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791/2 "2022-09-05T09:25:22Z")

</div>

Do you intend to use JuliaComputing’s package server? In that case you should probably contact their support about this problem.

Otherwise, it seems that you might have modified the default settings for the package server which is to connect to [https://pkg.julialang.org](https://pkg.julialang.org).

---

<div class="post-metadata">

**Author:** ![stefkuypers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefkuypers/32/19185_2.png) [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Post date:** [September 6, 2022, 8:17am UTC](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791/3 "2022-09-06T08:17:57Z")

</div>

Thanks! That worked!

---

<div class="post-metadata">

**Author:** ![Brad\_Carman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brad_carman/32/17631_2.png) [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Post date:** [May 28, 2025, 5:55pm UTC](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791/4 "2025-05-28T17:55:22Z")

</div>

How does one do this?

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [May 29, 2025, 6:47pm UTC](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791/5 "2025-05-29T18:47:47Z")

</div>

Email [info@juliahub.com](mailto:info@juliahub.com)

---

<div class="post-metadata">

**Author:** ![Brad\_Carman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brad_carman/32/17631_2.png) [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Post date:** [May 29, 2025, 8:26pm UTC](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791/6 "2025-05-29T20:26:31Z")

</div>

The answer I was looking for btw was `ENV["JULIA_PKG_SERVER"] = "https://pkg.julialang.org/"`

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [June 3, 2025, 3:25am UTC](https://discourse.julialang.org/t/vs-code-julia-1-8-could-not-download-https-juliahub-com-registries-exception-http-1-1-401-unauthorized-while-requesting-https-juliahub-com-registries/86791/7 "2025-06-03T03:25:56Z")

</div>

Or just under the variable altogether. There’s already the default package server.
