Closed mkblast closed 4 months ago
It's not documented, but as far as I know, there is an environment variable called MISE_FETCH_REMOTE_VERSIONS_TIMEOUT where you can configure the timeout. The default is 10 seconds.
https://github.com/jdx/mise/blob/ef25cb1a419a39de42a2839b4e97c56f19bfe569/src/env.rs#L82
Yeah, I already tried that.
export MISE_FETCH_REMOTE_VERSIONS_TIMEOUT="1000 s"
Something like this does nothing to fix the issue.
I use it in this format:
env_vars:
MISE_EXPERIMENTAL=true
MISE_FETCH_REMOTE_VERSIONS_TIMEOUT=30s
could you try?
Oh, and I set the environment variable before activating mise
.
unfortunately still the same issue. For now im using this version v2024.3.9, it works fine.
Also it only happens with core plugins. for example zig
installation works fine even if it takes more than 30s.
The MISE_FETCH_REMOTE_VERSIONS_TIMEOUT
is only used to fetch a list of versions in a JSON format, not to download the tool itself. I assume the default HTTP client is used which has a default timeout of 30s.
https://github.com/jdx/mise/blob/402c5cee97ebdbeb42fc32d055f73794d4dfdf12/src/http.rs#L22
Describe the bug When i download something using
mise
. Likemise i node@lts
due of my slow internet atm, if the download takes longer than 30s it will fail with this outputTo Reproduce
Expected behavior
mise doctor
outputAdditional context
mise --trace