-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[APT-18] [Bug] Aptos CLI stopped working without the internet / hangs a lot with slow internet #5909
Comments
What's the version of teh CLI? There is that flag, which should fix the issue. It gets more complicated on checking of there's a connection and then handling it, but I agree a more obvious error should take place. This was to mainly fix the issue that people had out of date dependencies, which was an entirely different issue, but slow / no internet would cause issues here. |
aptos 1.0.2, pre-build release.
It's how it behaves now without internet connection. |
Yeah, I've faced this issue many times, shouldn't it cache the dependency of the project and reuse it without internet? |
This issue is stale because it has been open 45 days with no activity. Remove the |
This issue is stale because it has been open 45 days with no activity. Remove the |
We have a similar issue probably with submitting analytics info, see #8113. |
@mkurnikov Hi, I tried Can you show me a step by step on how to repro this? Thanks! |
It works on my side with Fails without though, I assume it tries to poll git apis at some point. I've added I'm closing the issue for now. Thanks everyone! |
🐛 Bug
Aptos CLI hits the internet on every invocation now, very hard to use on a connection with high latency.
To reproduce
Try to disable your WI-FI and then run the
aptos move test
command, it now fails withWith slow internet, it now hangs in the beginning of the call, with nothing relevant in
RUST_LOG=debug
. I haven't looked at the code, but I remember hearing something about updating dependencies to the latest commit at the branch, maybe it's because of that.I'm not sure how to fix the behavior with a slow connection. At least allow it to proceed okay if there's no internet.
UPD. While writing the issue, I noticed the new flag
which should fix the issue. Could you make it more prominent? Maybe check whether there's a connection, and then enable the flag automatically if there's none?
Or at least fail with a more obvious error in case there's no connection, mentioning the flag.
UPD2. The flag doesn't really work for me though.
APT-18
The text was updated successfully, but these errors were encountered: