question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't render when it comes to leetcode.cn

See original GitHub issue

![Leetcode Stats](https://leetcard.jacoblin.cool/CompetitiveLin?theme=light&ext=heatmap&site=cn) shows nothing.

Just like this below:

Leetcode Stats

But https://leetcard.jacoblin.cool/CompetitiveLin?theme=light&ext=heatmap&site=cn works.

How to fix it?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JacobLinCoolcommented, Nov 14, 2022

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.

0reactions
CompetitiveLincommented, Dec 3, 2022

BTW, it works now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found