Skip to content
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

Wakatime progress bars not filled #2434

Closed
carepollo opened this issue Jan 17, 2023 · 21 comments · Fixed by #2519
Closed

Wakatime progress bars not filled #2434

carepollo opened this issue Jan 17, 2023 · 21 comments · Fixed by #2519
Labels
bug Something isn't working. help wanted Extra attention is needed. high-priority High priority issue or PR.

Comments

@carepollo
Copy link

Describe the bug

Using the following configuration https://github-readme-stats.vercel.app/api/wakatime?username=chickenface&theme=radical&custom_title=Last+7+Days+Coding+Stats&range=last_7_days&langs_count=5 The progress bars do not load and the coding times are not updated.

When I first added it to my README it worked perfectly, after a few days and ever since then it stays like this.

Expected behaviour

The progress bars should be visible and the coding times more accurate to what the Wakatime dashboard says.

Screenshots / Live demo link

image

image

Additional context

I have tried removing the range parameter, the theme parameter, the langs_count parameter, nothing changes. The numbers of coding time are not correct either but the difference is small, by 2 o 3 hours at most.

I have free plan of wakatime.

@carepollo carepollo added the bug Something isn't working. label Jan 17, 2023
@Zo-Bro-23
Copy link
Collaborator

Can reproduce. The next logical step would be to test it with a different user, but I don't know anyone else who uses Wakatime. If you can try this with a different user, please let us know the results.

@carepollo
Copy link
Author

I do not know another user with wakatime, so I used the user from this other open issue on this repo about the Wakatime card and using the exact same config, I get the same problem, no progress bar shown.

Code Time

@Zo-Bro-23
Copy link
Collaborator

My endpoint is working fine. (https://github-readme-stats.zohan.tech/api/wakatime?username=chickenface&theme=radical)

The latest commit to any files pertaining to wakatime, however, is really old, meaning that my fork shouldn't make a difference. @rickstaa any idea why this could be?

As for the timings that are slightly off, what the card shows is exactly what I see when I visit https://wakatime.com/@chickenface. Where did you take that screenshot from? Is it possible that that is lagging, since it shows everything to be less than what the stats card shows?

@carepollo
Copy link
Author

My endpoint is working fine. (https://github-readme-stats.zohan.tech/api/wakatime?username=chickenface&theme=radical)

The latest commit to any files pertaining to wakatime, however, is really old, meaning that my fork shouldn't make a difference. @rickstaa any idea why this could be?

As for the timings that are slightly off, what the card shows is exactly what I see when I visit https://wakatime.com/@chickenface. Where did you take that screenshot from? Is it possible that that is lagging, since it shows everything to be less than what the stats card shows?

I took the screenshots to compare the timings from the dashboard, at the moment of opening the issue

@Zo-Bro-23
Copy link
Collaborator

My endpoint is working fine. (https://github-readme-stats.zohan.tech/api/wakatime?username=chickenface&theme=radical)

The latest commit to any files pertaining to wakatime, however, is really old, meaning that my fork shouldn't make a difference. @rickstaa any idea why this could be?
As for the timings that are slightly off, what the card shows is exactly what I see when I visit https://wakatime.com/@chickenface. Where did you take that screenshot from? Is it possible that that is lagging, since it shows everything to be less than what the stats card shows?

I took the screenshots to compare the timings from the dashboard, at the moment of opening the issue

Hmm. Are the timings accurate now?

@rickstaa
Copy link
Collaborator

@carepollo I think your problems are caused by us caching the card results to decrease the load on the Vercel instance (see https://github.com/anuraghazra/github-readme-stats#common-options). It takes 4 hours for the card to update in the public instance. You can change this value in your fork and deploy your own Vercel instance if it is lower than 4 hours (See https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance). I created #2266 to make this process easier, but it still needs to be merged.

@carepollo
Copy link
Author

@carepollo I think your problems are caused by us caching the card results to decrease the load on the Vercel instance (see https://github.com/anuraghazra/github-readme-stats#common-options). It takes 4 hours for the card to update in the public instance. You can change this value in your fork and deploy your own Vercel instance if it is lower than 4 hours (See https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance). I created #2266 to make this process easier, but it still needs to be merged.

The timing difference is not the main issue for me, is the progress bars not being filled, at any time, even checking every 4 hours, they are not filled.

@Zo-Bro-23
Copy link
Collaborator

@carepollo I think your problems are caused by us caching the card results to decrease the load on the Vercel instance (see https://github.com/anuraghazra/github-readme-stats#common-options). It takes 4 hours for the card to update in the public instance. You can change this value in your fork and deploy your own Vercel instance if it is lower than 4 hours (See https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance). I created #2266 to make this process easier, but it still needs to be merged.

The timing difference is not the main issue for me, is the progress bars not being filled, at any time, even checking every 4 hours, they are not filled.

@rickstaa any idea why that is? My own Vercel instance seems to work well (see above).

@rickstaa
Copy link
Collaborator

@carepollo I think your problems are caused by us caching the card results to decrease the load on the Vercel instance (see https://github.com/anuraghazra/github-readme-stats#common-options). It takes 4 hours for the card to update in the public instance. You can change this value in your fork and deploy your own Vercel instance if it is lower than 4 hours (See https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance). I created #2266 to make this process easier, but it still needs to be merged.

The timing difference is not the main issue for me, is the progress bars not being filled, at any time, even checking every 4 hours, they are not filled.

@rickstaa any idea why that is? My own Vercel instance seems to work well (see above).

I need to debug the code to figure out what is going wrong. I, however, am currently very busy with my graduation, so I need more time. If you want to debug this issue, you can:

  1. Clone (your fork) of the repository.
  2. Install the dependencies npm i.
  3. Run the project using vercel dev.
  4. Add vscode debug statements in the code where the Wakatime bars are created (see node debugger with now dev vercel/vercel#2864 (comment)).
  5. Request @carepollo's query on the localhost localhost:3000/api/wakatime?username=chickenface&theme=radical&custom_title=Last+7+Days+Coding+Stats&range=last_7_days&langs_count=5.
  6. Inspect the results in vscode.

@rickstaa
Copy link
Collaborator

rickstaa commented Jan 24, 2023

Hello!!!!! Any update? 😄

Same here #2440

I have yet to have time to look at this. Maybe somebody else can investigate 👍. The debug steps are found in #2434 (comment).

@Zo-Bro-23
Copy link
Collaborator

Hello!!!!! Any update? 😄

Same here #2440

I have yet to have time to look at this. Maybe somebody else can investigate 👍. The debug steps are found in #2434 (comment).

Again, my deployment is working fine, and I'm up-to-date with master 😶

@rickstaa
Copy link
Collaborator

rickstaa commented Jan 25, 2023

Hello!!!!! Any update? 😄
Same here #2440

I have yet to have time to look at this. Maybe somebody else can investigate 👍. The debug steps are found in #2434 (comment).

Again, my deployment is working fine, and I'm up-to-date with master 😶

Nice; if somebody can test this out and comment below, we can close this issue 👍.

@Zo-Bro-23
Copy link
Collaborator

Hello!!!!! Any update? 😄
Same here #2440

I have yet to have time to look at this. Maybe somebody else can investigate 👍. The debug steps are found in #2434 (comment).

Again, my deployment is working fine, and I'm up-to-date with master 😶

Nice; if somebody can test this out and comment below, we can close this issue 👍.

See this comment.

@guillaumearnx
Copy link

Not working for me, but I'm up to date with master ...
image
domain : https://garnx.vercel.app

@rickstaa
Copy link
Collaborator

s://garnx.vercel.app

Okay, thanks for letting us know. I sadly don't have the time right now to investigate this issue. I will, however, have the time to review a PR with a fix if somebody wants to take it on. The debug steps are found at #2434 (comment). Let me know if you have any questions. 👍

@NathanCheshire
Copy link

Just to add, my endpoint has also stopped rendering the progress bar: https://github-readme-stats.vercel.app/api/wakatime?username=nathancheshire&theme=radical&custom_title=Time%20spent%20this%20year&line_height=25&langs_count=7&hide_border=true&border_radius=20&hide=Other,Text,JSON,YAML

Image:
image

@Zo-Bro-23
Copy link
Collaborator

Public endpoint

My endpoint

Your endpoint

@rickstaa seems like a high priority issue. I'm not able to figure out which commit broke the card on the master branch (it works fine on my branch which is around the Dec/Jan version of master) though. Perhaps 06a2a78.

@Zo-Bro-23 Zo-Bro-23 added help wanted Extra attention is needed. high-priority High priority issue or PR. labels Feb 11, 2023
@rickstaa
Copy link
Collaborator

@Zo-Bro-23, the set animations were missing. I created a quick fix #2519. I think the CSS and SVG generation code can be cleaned up when #1633 is implemented.

@carepollo
Copy link
Author

carepollo commented Feb 18, 2023

currently using the @Zo-Bro-23 as it used to work just fine as I needed, but today I noticed that is now getting the same issue as the original repo.

image
Here is a static image and the configuration I am using https://github-readme-stats.zohan.tech/api/wakatime?username=chickenface&theme=radical&custom_title=Last+7+Days+Coding+Stats&range=last_7_days&langs_count=5 also the original repo at the time of writing this comment is not filling the progress bars.

@rickstaa
Copy link
Collaborator

currently using the @Zo-Bro-23 as it used to work just fine as I needed, but today I noticed that is now getting the same issue as the original repo.

image Here is a static image and the configuration I am using https://github-readme-stats.zohan.tech/api/wakatime?username=chickenface&theme=radical&custom_title=Last+7+Days+Coding+Stats&range=last_7_days&langs_count=5 also the original repo at the time of writing this comment is not filling the progress bars.

Does #2519 cix the issues you are having?

@Zo-Bro-23
Copy link
Collaborator

Zo-Bro-23 commented Feb 19, 2023

currently using the @Zo-Bro-23 as it used to work just fine as I needed, but today I noticed that is now getting the same issue as the original repo.

image
Here is a static image and the configuration I am using https://github-readme-stats.zohan.tech/api/wakatime?username=chickenface&theme=radical&custom_title=Last+7+Days+Coding+Stats&range=last_7_days&langs_count=5 also the original repo at the time of writing this comment is not filling the progress bars.

Likely because I synced up my fork recently. Try this URL for the time being: https://github-readme-stats-git-fixwaka-605c1a-github-readme-stats-team.vercel.app. Once #2519 is merged, this will be fixed in the main instance, but we can't merge without @anuraghazra approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. help wanted Extra attention is needed. high-priority High priority issue or PR.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants