Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
api生成的svg';未在github标记文件中呈现_Github_Svg - Fatal编程技术网

api生成的svg';未在github标记文件中呈现

api生成的svg';未在github标记文件中呈现,github,svg,Github,Svg,嗨,我正在开发一个名为Stack Exchange自述统计的StackApp 其工作原理如下: 降价: ![Tessa's stackoverflow stats](https://api.squeeble.ink/se/?userId=7185314&seSite=stackoverflow) ![Tessa's meta exchange stats](https://api.squeeble.ink/se/?userId=388239&seSite=meta) ![Te

嗨,我正在开发一个名为Stack Exchange自述统计的StackApp

其工作原理如下:

降价:

![Tessa's stackoverflow stats](https://api.squeeble.ink/se/?userId=7185314&seSite=stackoverflow) 
![Tessa's meta exchange stats](https://api.squeeble.ink/se/?userId=388239&seSite=meta)
![Tessa's ask ubuntu stats](https://api.squeeble.ink/se/?userId=796646&seSite=AskUbuntu)

但是,使用上面的标记只会输出alt文本。
我想知道为什么下面这样的东西会呈现svg

这是由

制作的,因此我认为问题可能在于SVG中的图像。这个想法来自于这样一个事实,即由生成的GitHub统计数据不包含任何图像。因此,我开发了一个功能,您可以关闭图像并显示您的用户名:

在GitHub上测试后才发现我忘记了
https
中的
s
。现在,我的SVG使用的是
http
。我注意到了这一点,因为我想添加的另外两个SVG在链接中有
https
。那些使用
https
的人只显示了alt text uncarred,即我请求SVG时没有显示图像

结论
SVG不会总是在GitHub上的请求链接中使用
https
。用户@bk2204评论说这是一个证书问题。这是真的,因为它们确实与
http

一起工作,您的链接在本地对我来说似乎很好,并且在本文中也很有效,对吗?但是,当我指定了错误的
userId
seSite
时,我只得到了alt文本。当
userId
seSite
不一致时,请求超时,图像不显示。我没有看到它们在我的标记中呈现在GitHub上(我想将它们添加到我的个人GitHub自述中),我看到了,是的,我在GitHub上得到了一个502坏网关。您正在使用nginx吗?也许这与您的配置有关?我正在使用Heroku作为主机我在该域遇到证书问题。这可能就是问题的根源。
![Tessa's stackoverflow stats](https://api.squeeble.ink/se/?userId=7185314&seSite=stackoverflow&img=false&nameX=22) 
![Tessa's meta exchange stats](https://api.squeeble.ink/se/?userId=388239&seSite=meta&img=false&nameX=22)
![Tessa's ask ubuntu stats](https://api.squeeble.ink/se/?userId=796646&seSite=AskUbuntu&img=false&nameX=22)