Closed StupnikovVG closed 2 years ago
Do you have a firewall or corporate proxy that could be blocking the connections to the WakaTime API?
I've been having a similar issue, for some reason it seems like the DNS isn't working with VSCode, but works elsewhere...
{"caller":"/home/runner/work/wakatime-cli/wakatime-cli/cmd/legacy/run.go:204","func":"runCmd","level":"error","message":"failed to run command: sending heartbeat(s) later due to api error: failed making request to \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": Post \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": dial tcp 143.244.210.202:443: connectex: No connection could be made because the target machine actively refused it.","now":"2021-11-11T15:29:25+03:00","version":"v1.28.3"} {"caller":"/home/runner/work/wakatime-cli/wakatime-cli/pkg/api/diagnostic.go:28","func":"SendDiagnostics","level":"debug","message":"sending diagnostic data to api at https://api.wakatime.com/api/v1/plugins/errors","now":"2021-11-11T15:29:25+03:00","version":"v1.28.3"} {"caller":"/home/runner/work/wakatime-cli/wakatime-cli/cmd/legacy/run.go:240","func":"sendDiagnostics","level":"error","message":"failed to send diagnostics: failed making request to \"https://api.wakatime.com/api/v1/plugins/errors\": Post \"https://api.wakatime.com/api/v1/plugins/errors\": dial tcp 143.244.210.202:443: connectex: No connection could be made because the target machine actively refused it.","now":"2021-11-11T15:29:27+03:00","version":"v1.28.3"}
Does it always show working offline
or does it sync to the dashboard sometimes?
Do you have a firewall or corporate proxy that could be blocking the connections to the WakaTime API?
In my case, it really was a proxy that began to block the connection. The sysadmin fixed it and now it works. Thanks.
i meet this problem in my vscode in arhc of windows' a little time age it's okay to use but about one week age it's not work, i find this problem by wakatime debug i find it's my wsl proxy to cause, i only use all_proxy like "sock5:ip:port" i add http_proxy and https_proxy to my arch wsl okay, peace.
For the past few weeks, I am facing the following error with WakaTime in VS Code.
WakaTime: working offline... coding activity will sync next time we are online. Here is wakatime log file wakatime error.txt