修复失效的 Star History 图表 - #142
Conversation
受接口限制影响,当前 README 中的 Star History 图表已无法正常加载。已将其迁移到可正常工作的服务,并同步更新根目录 README 及所有多语言版本,使图表恢复正常显示。
linhongyu510
left a comment
There was a problem hiding this comment.
The SVG migration is useful, but the clickable targets introduced by this PR are not currently usable.
What I verified:
- both original
api.star-history.comendpoints return HTTP 200 SVG placeholders whose text saysGitHub restricted access to star dataand whose response header isx-chart-status: restricted - both replacement
star-history.dera.page/svgendpoints return HTTP 200, valid SVG, contain thedatawhalechina/easy-vibechart, and preserve the date/timeline and dark/light parameters - all 11 README variants are covered consistently: each has three replacement SVG URLs, two replacement click URLs, and no remaining old-domain URLs
- the replacement service is publicly sourced in
Mubelotix/SimRepo; its hash parser supports the#owner/repo&type=...&legend=...format used here
Blocking issue:
I opened both the replacement service root and the exact PR target
https://star-history.dera.page/#datawhalechina/easy-vibe&type=timeline&legend=top-left
twice in a real browser. Both pages entered the site's error boundary with:
Something went wrong
An unexpected error occurred. Please try refreshing the page.
The browser recorded two 403 responses from https://api.github.com/repos/Mubelotix/simrepo; the target page never displayed datawhalechina/easy-vibe or a Timeline chart. The SVG backend still worked, so this specifically affects the new <a href> and Markdown link destinations rather than the embedded images.
Please keep the verified SVG srcset/image migration, but point the clickable destinations to something that works without the failing interactive UI, such as the corresponding direct SVG URL, or retain another verified stable destination. Then re-check both link targets in a clean browser.
The branch is currently 8 commits behind main but GitHub reports MERGEABLE/CLEAN; current main still contains the old restricted image endpoints. No CI checks or commit statuses are reported for this PR.
背景
当前项目 README 中的 Star History 图表因接口限制已无法正常显示,需要尽快修复。
改动
相关文件