sometimes not showing cards
Hey, I'm using your widget but since some days I've this error:

The page where I'm loading your widget is: http://davideprati.com/tools
When showing just one card there is no problem, when showing 6 I've this behaviour. This error happens randomly, it is not alway reproducible
I've refreshed the page > 20 times. Nothing happened.
well, it was working when I've installed it. Is it possible that there is a maximal number of cards that you can show in a page?
No.
Sorry, but I do not get your approach. Do you think it is a bug or an error in how I've installed your library?
I think that the problem is that your script is making a request for a single repository and then format it. But it probably should make the requests for all the repository, and then, when all of them have a response, render them. Something like "Promise.all" should do the job. Otherwise, you could get all the repository for a single user and then filter them
I can confirm that it works with 4 cards but it is broken with 6
possibly somewhat related but this seems to have been completely broken for all cards. it looks like the cdn provided, jsdelivr, is sending back the wrong content type:
@edap download the script and put it locally. Worked fine for me. CDN version seems to be broken
@yury-dymov it is still not working, also when the script is in local http://davideprati.com/tools. It was working yesterday.
works fine for me: https://dymov.me/ btw, I opened your site and it also worked fine for me.
@yury-dymov it really shouldn't, are you sure you're not operating from local cache?

It is still not working, and in your website is also not working

oh, shi... Probably I am done using this package
update: editing local widget.js should be easy: var t="http://lab.lepture.com/github-cards/ -> var t="https://lab.lepture.com/github-cards/ but I don't like idea to use 3d party service like that
i managed to get it working (hopefully as a temporary solution) by just including the iframe directly, inspect the bottom of this page to see https://darrenbritton.com/
Got the same problem, apparently it is uBlock that is preventing execution, as per this issue: https://github.com/gorhill/uBlock/issues/2029
Maybe the architecture should be rethought?
New version released.
Still failing at https://atd.singularities.org with 8 cards
https://cdn.jsdelivr.net/github-cards/latest/widget.js seems to deliver previous version:
(function(e){var t="//cdn.jsdelivr.net/github-cards/1.0.2/" .....
@atd if your website is hosted on github, you have access to all your repository without making an API call to github. I've used the css style provided by this repository but I've created a template (in liquid template language) to fetch the repos. https://github.com/edap/edap.github.com/blob/master/_includes/card.html I do not know if this is your case
No, my website is self-hosted. Are there any API call restrictions involved?
Some users where reporting it was with the CDN, I did not investigate
@edap and @atd, I think it has to do with the CDN in jsDelivr. I opened up and issue #48 and while investigating found that it's probably the CDN.
@edap, I saw your site, how/why are your cards rendering? Did you use that template mentioned above?
I'm using jekyll hosted on github, there is a global variable with all the repositories. If you are interested, have a look at https://github.com/edap/edap.github.com/blob/master/tools.html
It's due to jsdelivr CDN changes.
I'm looking for solution too. https://github.com/jsdelivr/jsdelivr/issues/18027 This issue can be reproduced by using an old version of github-card. Example
jsDelivr no longer supports serving files with Content-Type: text/html for security reasons, but this change probably shouldn't have been applied to existing files. We've just pushed a fix to remove this restriction for existing files. If you keep getting a cached copy with Content-Type: text/plain, you can ping our bot here to purge the CDN cache. Sorry for the caused problems.
@jsdelivrbot purge https://cdn.jsdelivr.net/zhihu-card/0.2.3/theme/github.html
I purged this file "/zhihu-card/0.2.3/theme/github.html" from MaxCDN, CloudFlare, Fastly and Quantil.