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

Operation timeout,but the git command works fine. #2490

Closed
Zeonova opened this issue Jan 19, 2025 · 1 comment
Closed

Operation timeout,but the git command works fine. #2490

Zeonova opened this issue Jan 19, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Zeonova
Copy link

Zeonova commented Jan 19, 2025

There is an operation timeout issue when using gitui, but the git command works fine.I suspect it might be related to the network. Does gitui support SOCKS5 or HTTPS proxies in the terminal?
I am in China, and the Great Firewall interferes with access to many websites, including GitHub.

Update:
It has been confirmed as a network issue. Modifying the hosts file is required for normal operation, while Git seems to work fine through the VPN configuration on my machine.

Steps to reproduce the behavior:

  1. Timeout during the pull operation in gitui.
  2. git pull works fine.

❯ cat $HOME/Library/Caches/gitui/gitui.log
15:27:46 [ERROR] theme error ["/Users/kas/.config/gitui/theme.ron"]: No such file or directory (os error 2)
15:27:46 [TRACE] (1) gitui::app: [src/app.rs:160] open repo at: RefCell { value: Path(".") }
15:27:46 [TRACE] (6) mio::poll: [/Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/mio-1.0.3/src/poll.rs:571] registering event source with poller: token=Token(0), interests=READABLE
15:27:46 [TRACE] (6) mio::poll: [/Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/mio-1.0.3/src/poll.rs:571] registering event source with poller: token=Token(1), interests=READABLE
15:27:46 [TRACE] (1) asyncgit::status: [asyncgit/src/status.rs:102] request: [hash: 8336015990045670590] (type: WorkingDir)
15:27:46 [TRACE] (1) asyncgit::status: [asyncgit/src/status.rs:102] request: [hash: 5851422547442323705] (type: Stage)
15:27:46 [TRACE] (1) gitui: [src/main.rs:215] app start: 9 ms
15:27:46 [TRACE] (1) gitui::app: [src/app.rs:385] update
15:27:46 [TRACE] (3) asyncgit::status: [asyncgit/src/status.rs:160] status fetched: 5851422547442323705 (type: Stage)
15:27:46 [TRACE] (2) asyncgit::status: [asyncgit/src/status.rs:160] status fetched: 8336015990045670590 (type: WorkingDir)
15:27:48 [TRACE] (1) asyncgit::pull: [asyncgit/src/pull.rs:75] request
...
15:29:03 [ERROR] fetch error: git error:failed to connect to github.com: Operation timed out; class=Os (2)

  • OS/Distro + Version: [e.g. macOS 15.0.1 ]
  • gitui nightly 2025-01-14 ()
@Zeonova Zeonova added the bug Something isn't working label Jan 19, 2025
@Zeonova
Copy link
Author

Zeonova commented Jan 19, 2025

It has been confirmed as a network issue. Modifying the hosts file is required for normal operation, while Git seems to work fine through the VPN configuration on my machine.

@Zeonova Zeonova closed this as completed Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant