# Elm connection timeout while downloading packages

**URL:** <https://discourse.elm-lang.org/t/elm-connection-timeout-while-downloading-packages/10506>\
**Category:** Learn\
**Created:** [December 11, 2025, 3:25pm UTC](https://discourse.elm-lang.org/t/elm-connection-timeout-while-downloading-packages/10506 "2025-12-11T15:25:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mihkel](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/mihkel/32/5530_2.png) [@mihkel](https://discourse.elm-lang.org/u/mihkel)\
**Post date:** [December 11, 2025, 3:25pm UTC](https://discourse.elm-lang.org/t/elm-connection-timeout-while-downloading-packages/10506/1 "2025-12-11T15:25:34Z")

</div>

I’ve been using Elm on DigitalOcean for 4 years and suddenly I get erros while downloading some packages.

I’ve talked with DigitalOcean support but they are telling me to stop trying downloading json and that I should download packages directly instead - like I had any control over how Elm downloads packages =D

Exapmles of two errors:

```auto
Dec 11 05:36:17 e[34m│e[0m -- PROBLEM LOADING PACKAGE LIST ------------------------------------------------

Dec 11 05:36:17 e[34m│e[0m 
Dec 11 05:36:17 e[34m│e[0m I need the list of published packages to verify your dependencies, so I tried to
Dec 11 05:36:17 e[34m│e[0m fetch:
Dec 11 05:36:17 e[34m│e[0m 
Dec 11 05:36:17 e[34m│e[0m https://package.elm-lang.org/all-packages
Dec 11 05:36:17 e[34m│e[0m 
Dec 11 05:36:17 e[34m│e[0m But my HTTP library is giving me the following error message:
Dec 11 05:36:17 e[34m│e[0m 
Dec 11 05:36:17 e[34m│e[0m ConnectionTimeout
Dec 11 05:36:17 e[34m│e[0m 
Dec 11 05:36:17 e[34m│e[0m Are you somewhere with a slow internet connection? Or no internet? Does the link
Dec 11 05:36:17 e[34m│e[0m I am trying to fetch work in your browser? Maybe the site is down? Does your
Dec 11 05:36:17 e[34m│e[0m internet connection have a firewall that blocks certain domains? It is usually
Dec 11 05:36:17 e[34m│e[0m something like that!
Dec 11 05:36:17 e[34m│e[0m 
Dec 11 05:36:17 e[34m│e[0m 

```

or

```auto
Dec 11 04:21:28 e[34m│e[0m Verifying dependencies (19/19)-- PROBLEM DOWNLOADING PACKAGE -------------------------------------------------
Dec 11 04:21:28 e[34m│e[0m 
Dec 11 04:21:28 e[34m│e[0m I need to find the latest download link for NoRedInk/elm-json-decode-pipeline
Dec 11 04:21:28 e[34m│e[0m 1.0.0, so I tried to fetch:
Dec 11 04:21:28 e[34m│e[0m 
Dec 11 04:21:28 e[34m│e[0m https://package.elm-lang.org/packages/NoRedInk/elm-json-decode-pipeline/1.0.0/endpoint.json
Dec 11 04:21:28 e[34m│e[0m 
Dec 11 04:21:28 e[34m│e[0m But my HTTP library is giving me the following error message:
Dec 11 04:21:28 e[34m│e[0m 
Dec 11 04:21:28 e[34m│e[0m ConnectionTimeout

```

---

<div class="post-metadata">

**Author:** ![evancz](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/evancz/32/16_2.png) [@evancz](https://discourse.elm-lang.org/u/evancz)\
**Post date:** [December 11, 2025, 4:41pm UTC](https://discourse.elm-lang.org/t/elm-connection-timeout-while-downloading-packages/10506/2 "2025-12-11T16:41:10Z")

</div>

There are basic instructions of how to avoid this in CI here:

> [@Towards more reliable CI](https://discourse.elm-lang.org/t/towards-more-reliable-ci/10503):
>
> Context It is possible to make CI much more reliable by caching the ~/.elm directory. The directory contains: Immutable files. All package content is hashed on publication, so downloading requires that the content exactly matches that hash. They will be the same for all downloads. Deterministic artifacts. Certain build artifacts can be pre-compiled for each package, so those are also stored in ~/.elm. These are deterministic based on the aforementioned immutable files. Caching these files mea…

I’ll hopefully know more about the cause in the coming days. Have to dig through logs to see if there’s some patterns in the requests.

**Aside:** I noticed some bursts of downloading lots of `docs.json` files in the same second. The pattern suggested “downloading docs for my project” rather than “scraping the whole catalog”, so if any editor tool is downloading lots and lots of documentation without caching anything, please figure out a way to avoid that! I am pretty certain that is not the root cause. Just figured I’d mention it in case it’s something easily fixable.

---

<div class="post-metadata">

**Author:** ![rupert](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rupert/32/1775_2.png) [@rupert](https://discourse.elm-lang.org/u/rupert)\
**Post date:** [December 11, 2025, 5:48pm UTC](https://discourse.elm-lang.org/t/elm-connection-timeout-while-downloading-packages/10506/3 "2025-12-11T17:48:05Z")

</div>

BTW, there does seem to be some extra flakiness with githubs service today, which is not helping.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [December 21, 2025, 5:48pm UTC](https://discourse.elm-lang.org/t/elm-connection-timeout-while-downloading-packages/10506/4 "2025-12-21T17:48:43Z")

</div>

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