-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Bulk heartbeat error #203
Comments
Thanks for bringing this up! From what I found, you'll probably not be the only one to have this issue in the future. The problem is that the above URL is indeed invalid. It's supposed to be Possible solutionChange Problem causeMy assumption on how this came to happen is this. WakaTime is currently migrating from their "legacy" Python-based CLI (wakatime/wakatime) to a Go-rewrite (wakatime/wakatime-cli) of it. I'm not sure how the rollout is done (would be interesting to know, though!), but probably you already got the new CLI, while other users (including me) still have the old one. It looks like there was a change to what the API's base URL has to look like. I think it used to be meant only for heartbeats, so was previously called This is quite problematic, as any Wakapi user's setup would stop working the moment the update to the new CLI and until they manually change their config. Maybe @alamhamlett has more details on the problem and an idea how to overcome this? |
Update: I pushed a workaround so the old URL format still keeps working. I'd still recommend to update your config. |
Nice job, very quick response 👍 Thanks. |
The launch happens for all VSCode users currently, unless you have Before we launch again, we'll fix this without any changes to your cfg or wakapi. The fix will be adding |
@muety can you release an update to wakapi that adds endpoint:
We're changing wakatime-cli to strip |
@alanhamlett The requested endpoint should be present already. wakapi/routes/api/heartbeat.go Line 44 in a4d47fb
This is a prefix matcher, i.e. any request with a path starting with /v1/users/{user}/heartbeats (which includes /v1/users/{user}/heartbeats.bulk ) is matched by this route. This might not be the most elegant solution, but it works for the moment. Did you try accessing the endpoint?
|
Update: Happened to me on PyCharm (and I'm assuming any JetBrains IDEs). A similar fix worked. First, went to
Updated On IDE restart, saw a bunch of offline scripts run on the log file, and all my activity in the past that wasn't synced showed up on the dashboard. All was resolved! Edit: This worked until updating the plugin just today - worked all of yesterday and today morning. So although it probably isn't caused by the same update, the same fix worked for me. |
Description
Wakatime with VSCode fails to sync data with Wakapi. It keeps attempting
POST /api/heartbeat/v1/users/current/heartbeats.bulk
but it fails. This has suddenly happened, no errors before yesterday.Expected result
Worklogs are synced with Wakapi successfully.
The text was updated successfully, but these errors were encountered: