Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add help when docs download times out #1057

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

fhunleth
Copy link
Contributor

@fhunleth fhunleth commented Dec 23, 2024

Before this commit, if there was a timeout when download docs, an error
like this was printed:

$ mix hex.docs fetch elixir
Couldn't find docs for package with name elixir or version 1.18.0

With this commit, the error looks like this and the suggestion helped
me, at least:

$ mix hex.docs fetch elixir
Timed out trying to download docs. Try changing your timeout settings:

    HEX_HTTP_TIMEOUT=120 mix hex.docs fetch elixir 1.18.0

$ HEX_HTTP_TIMEOUT=120 mix hex.docs fetch elixir 1.18.0
Docs fetched: /Users/fhunleth/.hex/docs/hexpm/elixir/1.18.0

Before this commit, if there was a timeout when download docs, an error
like this was printed:

```
$ mix hex.docs fetch elixir
Couldn't find docs for package with name elixir or version 1.18.0
``

With this commit, the error looks like this and the suggestion helped
me, at least:

```
$ mix hex.docs fetch elixir
Timed out trying to download docs. Try changing your timeout settings:

    HEX_HTTP_TIMEOUT=120 mix hex.docs fetch elixir 1.18.0

$ HEX_HTTP_TIMEOUT=120 mix hex.docs fetch elixir 1.18.0
Docs fetched: /Users/fhunleth/.hex/docs/hexpm/elixir/1.18.0
```
@wojtekmach wojtekmach merged commit 96c8f54 into hexpm:main Dec 24, 2024
13 checks passed
@wojtekmach
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants