Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork25.3k
Closed
Description
Describe the bug
It looks like therange
parameter of the WakaTime card is no longer working due to some upstream changes.#2670 fixed the card for theall_time
range. For the other ranges, however, the 403 "Forbidden" error is thrown. The strange thing is that this error is not thrown when I directly try the generated WakaTime API link in the browser, but it only happens when I request it through Axios. This is strange as according to the documentation this should work.
github-readme-stats/src/fetchers/wakatime-fetcher.js
Lines 14 to 20 in688f4e4
const{ data}=awaitaxios.get( | |
`https://${ | |
api_domain ?api_domain.replace(/\/$/gi,"") :"wakatime.com" | |
}/api/v1/users/${username}/stats/${ | |
range||"all_time" | |
}?is_including_today=true`, | |
); |
Regular card
[](https://github.com/anuraghazra/github-readme-stats)
*All time
[](https://github.com/anuraghazra/github-readme-stats)
Last 7 days
[](https://github.com/anuraghazra/github-readme-stats)
Last 30 days
[](https://github.com/anuraghazra/github-readme-stats)
Expected behaviour
Should work according to the documentation
Screenshots / Live demo link
No response
Additional context
No response