Wakatime Error (105) hangs the interface every once in a while
wende opened this issue · 6 comments
Although the reports seem to be correct, once every couple of minutes my entire Spacemacs hangs with this error in messages:
error in process sentinel: cond: WakaTime Error (105) Unknown wakatime-cli error. Please check your ~/.wakatime.log file and open a new issue at https://github.com/wakatime/wakatime-mode
This is the line in the the log:
{"now": "2017/09/21 16:14:08 +0200", "version": "6.0.1", "plugin": "emacs-wakatime/1.0.2", "time": 1506003198.75, "level": "ERROR", "message": "Traceback (most recent call last):\n File \"/usr/local/lib/python2.7/site-packages/wakatime/main.py\", line 516, in execute\n retval = process_heartbeat(args, configs, hostname, heartbeat)\n File \"/usr/local/lib/python2.7/site-packages/wakatime/main.py\", line 494, in process_heartbeat\n return send_heartbeat(**heartbeat)\n File \"/usr/local/lib/python2.7/site-packages/wakatime/main.py\", line 372, in send_heartbeat\n proxies=proxies, timeout=timeout)\n File \"/usr/local/lib/python2.7/site-packages/wakatime/packages/requests/sessions.py\", line 511, in post\n return self.request('POST', url, data=data, json=json, **kwargs)\n File \"/usr/local/lib/python2.7/site-packages/wakatime/packages/requests/sessions.py\", line 468, in request\n resp = self.send(prep, **send_kwargs)\n File \"/usr/local/lib/python2.7/site-packages/wakatime/packages/requests/sessions.py\", line 578, in send\n r = adapter.send(request, **kwargs)\n File \"/usr/local/lib/python2.7/site-packages/wakatime/packages/requests/adapters.py\", line 376, in send\n timeout=timeout\n File \"/usr/local/lib/python2.7/site-packages/wakatime/packages/requests/packages/urllib3/connectionpool.py\", line 609, in urlopen\n _stacktrace=sys.exc_info()[2])\n File \"/usr/local/lib/python2.7/site-packages/wakatime/packages/requests/packages/urllib3/util/retry.py\", line 230, in increment\n _observed_errors = self._observed_errors\nAttributeError: 'Retry' object has no attribute '_observed_errors'\n"}
Tried both configurations. This:
(wakatime :variables
wakatime-api-key my-key
;; use the actual wakatime path
wakatime-cli-path "/usr/local/bin/wakatime")
)
and this
(wakatime :variables
wakatime-api-key my-key
;; use the actual wakatime path
wakatime-cli-path "/usr/local/lib/python2.7/site-packages/wakatime/cli.py")
)
This is happening to me too. The Wakatime server goes down enough and hangs emacs enough that I stopped using it.
I will consider using it again once this is resolved. There's no way hanging the editor is the correct thing to do when an error happens.
It is REALLY annoying, because the server won't just go down for one submission. It will go down, and then every time you type for a few minutes, the interface will hang because it keeps trying to submit. Try editing code when your editor hangs every 5 seconds.
What version of wakatime-cli is installed on your machine?
It was 8.0.0, I have just upgraded to 10.1.0 and things have been stable for a day
@alanhamlett it definitely still happens with 10.1.0, just happened to me a bunch of times
Most likely fixed now that we're using the new Go wakatime-cli.