mujx / hakatime

Wakatime server implementation & analytics dashboard
https://hakatime.mtx-dev.xyz
The Unlicense
610 stars 45 forks source link

`/projects` fails to load if there exists a project with a blank name #62

Closed thehale closed 1 year ago

thehale commented 2 years ago

Issue

When clicking on the Projects tab in the sidebar, my local instance of Hakatime sits on the loading screen forever.

Expected Behavior

Clicking on the Projects tab should pull up details about one of my projects, just like in the demo environment.

Steps to Reproduce

  1. Use VS Code on a random file, outside of any specific project, for a few minutes.
  2. Open Hakatime, log in, click on Projects and see the loading screen perpetually.

Suspected Root Cause

If I manually log into the hakatime db and delete all heartbeats with a blank project name, the page loads successfully.

Video for extra clarity:

https://user-images.githubusercontent.com/47901316/165017611-d62bb6ba-edb7-494d-8758-8231fa6ac93b.mp4

JamesDAdams commented 1 year ago

same

mujx commented 1 year ago

Thanks a lot @thehale for the detailed bug report. I was able to reproduce and fix the issue.