[英]Failed to load resource: the server responded with a status of 503 (Service Unavailable) favicon.ico
I am trying to deploy my Node.JS site through Heroku and I keep getting this error "Failed to load resource: the server responded with a status of 503 (Service Unavailable) favicon.ico" I searched around and thought I would add the following to my header我正在尝试通过 Heroku 部署我的 Node.JS 站点,但我不断收到此错误“无法加载资源:服务器响应状态为 503(服务不可用)favicon.ico”我四处搜索并认为我会添加以下内容到我的标题
<link rel="shortcut icon" href="">
However I am still getting this error.但是我仍然收到此错误。 Any ideas?
有任何想法吗?
This specific problem is why packages like express-favicion
and serve-favicon
exist.这个特定的问题就是为什么存在像
express-favicion
和serve-favicon
这样的包。 They add a handler for the favicon.ico
file.他们为
favicon.ico
文件添加了一个处理程序。
What you've done there has only made things worse as it tells the client that the icon for the page is actually the page itself.你在那里所做的只会让事情变得更糟,因为它告诉客户页面的图标实际上是页面本身。
In my case, this issue was seen due to the failure of the backend services.在我的例子中,这个问题是由于后端服务失败造成的。 Restarting the backend services/server resolved the issue for me.
重新启动后端服务/服务器为我解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.