Skip to content

Issue downloading using tldr fetch #21

@davised

Description

@davised

Issue

Running intelli-shell tldr fetch fails due to timeout

INTELLI_LOG=debug intelli-shell tldr fetch
 Done processing files                                                                                                                                        Error:
   0: Failed to clone tldr repository
   1: failed to connect to github.com: Operation timed out; class=Os (2)

Location:
   /home/runner/work/intelli-shell/intelli-shell/src/service/tldr.rs:282

This is a bug. Consider reporting it at https://github.com/lasantosr/intelli-shell
Logs can be found at /home/cqls/davised/.local/share/intelli-shell/intelli-shell.log

Shell log

#  /home/cqls/davised/.local/share/intelli-shell/intelli-shell.log
2025-09-10T23:13:56.789024Z  INFO src/main.rs:38: intelli-shell v3.0.1
2025-09-10T23:13:56.790050Z  INFO src/storage/mod.rs:51: Using default storage path: /home/cqls/davised/.local/share/intelli-shell
2025-09-10T23:13:56.797662Z DEBUG /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rusqlite_migration-2.3.0/src/lib.rs:817: some migrations defined (version: 5), try to migrate
2025-09-10T23:13:56.797960Z DEBUG /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rusqlite_migration-2.3.0/src/lib.rs:719: no migration to run, db already up to date
2025-09-10T23:13:56.798093Z  INFO run: src/app.rs:98: Running tldr 'fetch' process
2025-09-10T23:13:56.798109Z DEBUG run: src/app.rs:99: Options: TldrFetchProcess { category: None, commands: [], filter_commands: None }
2025-09-10T23:13:56.798351Z  INFO src/service/tldr.rs:270: Performing a shallow clone of 'https://github.com/tldr-pages/tldr.git' ...
2025-09-10T23:16:09.235484Z ERROR src/errors.rs:88: Error:
   0: Failed to clone tldr repository
   1: failed to connect to github.com: Operation timed out; class=Os (2)

Location:
   /home/runner/work/intelli-shell/intelli-shell/src/service/tldr.rs:282

This is a bug. Consider reporting it at https://github.com/lasantosr/intelli-shell
Logs can be found at /home/cqls/davised/.local/share/intelli-shell/intelli-shell.log

Notes

This is likely due to needing to use the proxy server to connect to the web. According to a quick google, reqwest should respect the env var if it's set.

Looks like git2 will use the git config to pull the proxy info but git itself doesn't need to have the config set, it'll pull from the env vars as well.

I guess this is an edge case but do you have any ideas on how I can get around it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions