Skip to content
This repository has been archived by the owner on Oct 9, 2021. It is now read-only.

Better proxy support #23

Closed
alanhamlett opened this issue May 27, 2015 · 11 comments
Closed

Better proxy support #23

alanhamlett opened this issue May 27, 2015 · 11 comments

Comments

@alanhamlett
Copy link
Member

Currently proxy support is handled with requests, but only simple HTTP Basic Auth is supported.

Support for other proxy schemes is needed, such as domain auth:

https://domain\user:pass@address:port

@alanhamlett
Copy link
Member Author

Dependent on kennethreitz/requests#1582

@alanhamlett
Copy link
Member Author

Possibly could use requests/requests-ntlm.

@rs38
Copy link

rs38 commented May 19, 2016

since 2(?) weeks I cannot upload wakatimes through a proxy. It worked before.

the log show errors like this:

{"now": "2016/05/17 18:03:52 +0200", "version": "6.0.2", "plugin": "visualstudio/12.0 visualstudio-wakatime/8.0.3", "time": 1463501013537000.0, "level": "ERROR", "message": {"response_code": 400, "response_content": "{\n  \"errors\": {\n    \"time\": [\n      \"Number must be between 
1388534400 and 99999999999.\"\n    ]\n  }\n}"}}
{"now": "2016/05/17 18:13:50 +0200", "version": "6.0.2", "plugin": "visualstudio/12.0 visualstudio-wakatime/8.0.3", "time": 1463501561156857.0, "level": "ERROR", "message": {"response_content": "{\n  \"errors\": {\n    \"time\": [\n      \"Number must be between 1388534400 and 99999999999.\"\n    ]\n  }\n}", "response_code": 400}}
{"now": "2016/05/17 18:28:30 +0200", "version": "6.0.2", "plugin": "visualstudio/12.0 visualstudio-wakatime/8.0.3", "time": 1463502466650297.0, "level": "ERROR", "message": {"response_code": 400, "response_content": "{\n  \"errors\": {\n    \"time\": [\n      \"Number must be between 1388534400 and 99999999999.\"\n    ]\n  }\n}"}}

   raise SSLError(e, request=request)\nwakatime.packages.requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)\n", "SSLError": "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)"}}

@alanhamlett
Copy link
Member Author

That's not a proxy problem, that's a bug in the Visual Studio plugin version that you're using. Please upgrade WakaTime in Visual Studio to the latest version 8.0.4 to fix it.

@rs38
Copy link

rs38 commented May 20, 2016

this is/was 8.0.4:

[WakaTime Info 05:18:42 PM] Initializing WakaTime v8.0.4 [WakaTime Debug 05:18:43 PM] Python found from embedded location: C:\Users\x\AppData\Roaming\WakaTime\python\pythonw [WakaTime Info 05:18:43 PM] Current wakatime-cli version is 6.0.2 [WakaTime Info 05:18:43 PM] Checking for updates to wakatime-cli... [WakaTime Debug 05:18:43 PM] A proxy with authentication will be used. [WakaTime Info 05:18:44 PM] wakatime-cli is up to date. [WakaTime Info 05:18:44 PM] Finished initializing WakaTime v8.0.4

@gandarez
Copy link
Member

@rs38 How did you setup wakatime config proxy?

@alanhamlett
Copy link
Member Author

alanhamlett commented May 20, 2016

@rs38 Your first message shows "plugin": "visualstudio/12.0 visualstudio-wakatime/8.0.3", but now that you're using v8.0.4 is it working?

P.S. This issue is for adding windows domain support to the proxy config, so please email us at support@wakatime.com or create a different issue so we can continue helping.

@rs38
Copy link

rs38 commented May 21, 2016

no it still does not work. Not sure when it updated.
Will contact Support. thx.
(at home with out Proxy it works fine, okay different VS)

@rs38
Copy link

rs38 commented May 22, 2016

@gandarez http(s)://user:passw@proxy:81
tried both http/https

@alanhamlett
Copy link
Member Author

Latest master adds support for NTLM proxies, anyone have a corporate network they could test this out on?

@alanhamlett
Copy link
Member Author

Fixed with v6.2.3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants