Can't render when it comes to leetcode.cn
See original GitHub issue
shows nothing.
Just like this below:
But https://leetcard.jacoblin.cool/CompetitiveLin?theme=light&ext=heatmap&site=cn works.
How to fix it?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Please stop redirecting to leetcode-cn automatically
Recently when I open leetcode.com in the browser in China, the website automatically redirect me to leetcode.com. This can be solved by opening...
Read more >Log in Failure on leetcode-cn account · Issue #576 - GitHub
When logging in the leetcode-cn account with account and password, the LeetCode plugin told me that Error: certificate has expired.
Read more >3 months in and I still cant solve a single Leetcode Problem
Im 3 months into a bootcamp, and I know a lot of fundamentals but cant solve anything on leetcode? Like I've gone through…...
Read more >c# - What is an IndexOutOfRangeException ... - Stack Overflow
What Is It? This exception means that you're trying to access a collection item by index, using an invalid index. An index is...
Read more >When to useMemo and useCallback - Kent C. Dodds
Performance optimizations ALWAYS come with a cost but do NOT always ... second render of the component, the original dispense function gets ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I believe that it is caused by the slow response from leetcode.cn, which makes GitHub image proxy timeout.
I’m not sure what’s the threshold of the timeout, maybe around 3 or 4 seconds because it always needs about 4.5 seconds to show up without any cache. (I use chrome dev-tool to measure it.)
My suggestion is to use GitHub Actions as a cron job to generate it. You can use the package
leetcode-card
or simply use curl to download the SVG and commit it to the repository.BTW, it works now.