wakatime / visualstudio-wakatime

Visual Studio plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/visual-studio
BSD 3-Clause "New" or "Revised" License
334 stars 62 forks source link

Waka not sending activity #116

Closed AndreJuliano closed 3 years ago

AndreJuliano commented 3 years ago

Hi, guys.

I installed WakaTime on Visual Studio 2019 for ASP.Net projects time tracking. Unfortunately it is not showing any activity in the Dashboard. I activated logging. There is an error related to SSL. I realized also that there is an ".waketime.db" file in my user's folder and this file is not empty. Looks like WakaTime is recording activities correctly but it is not beeing able to send them to the server.

The log is following:

{"now": "2021/07/28 16:16:53 -0300", "version": "13.0.7", "plugin": "visualstudio/16.0 visualstudio-wakatime/10.3.1", "time": 1627499806.890695, "caller": "wakatime\\dependencies\\__init__.py", "lineno": 145, "file": "C:\\Users\\andre\\source\\repos\\TraderEsportivo\\TraderEsportivo.Web\\wwwroot\\poc\\ChromeExtensions\\AutobetTipster\\options.html", "level": "DEBUG", "message": "Parsing dependencies not supported for html.HtmlParser"}
{"now": "2021/07/28 16:16:53 -0300", "version": "13.0.7", "plugin": "visualstudio/16.0 visualstudio-wakatime/10.3.1", "time": 1627499806.890695, "caller": "wakatime\\main.py", "lineno": 77, "file": "C:\\Users\\andre\\source\\repos\\TraderEsportivo\\TraderEsportivo.Web\\wwwroot\\poc\\ChromeExtensions\\AutobetTipster\\options.html", "level": "DEBUG", "message": "File does not exist; ignoring this heartbeat."}
{"now": "2021/07/28 16:16:53 -0300", "version": "13.0.7", "plugin": "visualstudio/16.0 visualstudio-wakatime/10.3.1", "time": 1627499806.890695, "caller": "wakatime\\main.py", "lineno": 77, "file": "C:\\Users\\andre\\source\\repos\\TraderEsportivo\\TraderEsportivo.Web\\wwwroot\\poc\\ChromeExtensions\\AutobetTipster\\options.html", "level": "DEBUG", "message": "File does not exist; ignoring this heartbeat."}
{"now": "2021/07/28 16:16:53 -0300", "version": "13.0.7", "plugin": "visualstudio/16.0 visualstudio-wakatime/10.3.1", "time": 1627499806.890695, "caller": "wakatime\\api.py", "lineno": 45, "file": "C:\\Users\\andre\\source\\repos\\TraderEsportivo\\TraderEsportivo.Web\\wwwroot\\poc\\ChromeExtensions\\AutobetTipster\\options.html", "level": "DEBUG", "message": "Sending heartbeats to api at https://api.wakatime.com/api/v1/users/current/heartbeats.bulk"}
{"now": "2021/07/28 16:16:53 -0300", "version": "13.0.7", "plugin": "visualstudio/16.0 visualstudio-wakatime/10.3.1", "time": 1627499806.890695, "caller": "wakatime\\api.py", "lineno": 51, "file": "C:\\Users\\andre\\source\\repos\\TraderEsportivo\\TraderEsportivo.Web\\wwwroot\\poc\\ChromeExtensions\\AutobetTipster\\options.html", "level": "DEBUG", "message": "[{'time': 1627499806.890695, 'entity': 'C:/Users/andre/source/repos/TraderEsportivo/TraderEsportivo.Web/wwwroot/poc/ChromeExtensions/AutobetTipster/options.html', 'type': 'file', 'category': 'coding', 'is_write': False, 'project': 'TraderEsportivo', 'branch': 'master', 'language': 'HTML', 'dependencies': [], 'lines': 30, 'lineno': None, 'cursorpos': None, 'user_agent': 'wakatime/13.0.7 (Windows-10-10.0.19041-SP0) Python3.8.1.final.0 visualstudio/16.0 visualstudio-wakatime/10.3.1'}]"}
{"now": "2021/07/28 16:16:53 -0300", "version": "13.0.7", "plugin": "visualstudio/16.0 visualstudio-wakatime/10.3.1", "time": 1627499806.890695, "caller": "wakatime\\api.py", "lineno": 119, "file": "C:\\Users\\andre\\source\\repos\\TraderEsportivo\\TraderEsportivo.Web\\wwwroot\\poc\\ChromeExtensions\\AutobetTipster\\options.html", "level": "WARNING", "message": "{'SSLError': \"HTTPSConnectionPool(host='api.wakatime.com', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))\", 'traceback': 'Traceback (most recent call last):\\n  File \"lib\\\\site-packages\\\\urllib3\\\\connectionpool.py\", line 662, in urlopen\\n  File \"lib\\\\site-packages\\\\urllib3\\\\connectionpool.py\", line 948, in _prepare_proxy\\n  File \"lib\\\\site-packages\\\\urllib3\\\\connection.py\", line 352, in connect\\n  File \"lib\\\\site-packages\\\\urllib3\\\\util\\\\ssl_.py\", line 370, in ssl_wrap_socket\\n  File \"ssl.py\", line 500, in wrap_socket\\n  File \"ssl.py\", line 1040, in _create\\n  File \"ssl.py\", line 1309, in do_handshake\\nssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \"lib\\\\site-packages\\\\requests\\\\adapters.py\", line 439, in send\\n  File \"lib\\\\site-packages\\\\urllib3\\\\connectionpool.py\", line 719, in urlopen\\n  File \"lib\\\\site-packages\\\\urllib3\\\\util\\\\retry.py\", line 436, in increment\\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError(SSLCertVerificationError(1, \\'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)\\')))\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \"wakatime\\\\api.py\", line 98, in send_heartbeats\\n  File \"lib\\\\site-packages\\\\requests\\\\sessions.py\", line 578, in post\\n  File \"lib\\\\site-packages\\\\requests\\\\sessions.py\", line 530, in request\\n  File \"lib\\\\site-packages\\\\requests\\\\sessions.py\", line 643, in send\\n  File \"lib\\\\site-packages\\\\requests\\\\adapters.py\", line 514, in send\\nrequests.exceptions.SSLError: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError(SSLCertVerificationError(1, \\'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)\\')))\\n'}"}
gandarez commented 3 years ago

Hi @AndreJuliano,

Are you under a VPN or corporate proxy?

AndreJuliano commented 3 years ago

Hi, Carlos.

No, I'm not behind a proxy or corporate firewall. However, your question made me realize I am using Fiddler and I already experienced some networking troubles when Fiddler is running. Actually, today Waka Time was capable of send data to the server. May be Fiddler was not running at that moment. I will do some more tests to check if Fiddler may be interfering in the connection.

Em qui, 29 de jul de 2021 3:33 PM, Carlos Henrique Guardão Gandarez < @.***> escreveu:

Hi @AndreJuliano https://github.com/AndreJuliano,

Are you under a VPN or corporate proxy?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wakatime/visualstudio-wakatime/issues/116#issuecomment-889368523, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALXXYSDX6LSH5ICA4PUO7PTT2GNHFANCNFSM5BFARNEA .

gandarez commented 3 years ago

We've updated WakaTime for Visual Studio, please do update your extension.