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

New CLI download (4.0.1) consistently times out #154

Closed
mattseddon opened this issue Aug 23, 2020 · 6 comments
Closed

New CLI download (4.0.1) consistently times out #154

mattseddon opened this issue Aug 23, 2020 · 6 comments

Comments

@mattseddon
Copy link
Contributor

After upgrading to 4.0.1 the extension stopped logging heartbeats and remained in an "initializing" state. After debugging I found that the CLI was failing to download:

image

I saw from the changelog that you changed the way that this works for this version.

I can confirm that manually downloading the zip and moving it into the extension folder fixed the issue for me.

@alanhamlett
Copy link
Member

It must be due to switching from deprecated request library to urllib. Maybe urllib doesn't support proxies the same way as request... are you by chance using a proxy in the wakatime.proxy vscode config or ~/.wakatime.cfg file?

@mattseddon
Copy link
Contributor Author

I'm not using a proxy.

@alanhamlett
Copy link
Member

Oh, the default request timeout was 5 seconds which is wayyy too low. Increased it to 60s in v4.0.2. Does upgrading fix the error for you?

@mattseddon
Copy link
Contributor Author

Still seeing the same issue on 4.0.2:

image

@alanhamlett
Copy link
Member

Oops.. I didn't use the options when fetching so the new timeout value wasn't actually used. Should be fixed now in v4.0.3.

@mattseddon
Copy link
Contributor Author

Seems to be fixed now

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

No branches or pull requests

2 participants