简体   繁体   English

加载资源失败:服务器响应状态为 503(服务不可用) favicon.ico

[英]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-favicionserve-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.重新启动后端服务/服务器为我解决了这个问题。

在此处输入图片说明

I had the same problem, after I checked it turned out that the VPN in my browser was still on, after I turned it off the problem was gone我遇到了同样的问题,在我检查后发现浏览器中的VPN仍在开启,关闭后问题消失了

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Heroku:加载资源失败:服务器响应状态为 503(服务不可用)/favicon.ico - Heroku: Failed to load resource: the server responded with a status of 503 (Service Unavailable) /favicon.ico Node.js服务器:无法加载资源:服务器以状态404(未找到)响应 - Nodejs server: Failed to load resource: the server responded with a status of 404 (Not Found) “无法加载资源:服务器响应状态为404” express docker - “Failed to load resource: the server responded with a status of 404” express docker Heroku:无法加载资源:服务器以状态404(未找到)响应 - Heroku: Failed to load resource: the server responded with a status of 404 (Not Found) nodejs无法加载资源:服务器响应状态为404 - nodejs Failed to load resource: the server responded with a status of 404 加载资源失败:服务器以 404(未找到)状态响应 nodejs - Failed to load resource: the server responded with a status of 404 (Not Found) with nodejs 无法加载资源:服务器的响应状态为405(不允许使用方法)api - Failed to load resource: the server responded with a status of 405 (Method Not Allowed) api 加载资源失败:服务器响应状态为 404 (Not Found) Express - Failed to load resource: the server responded with a status of 404 (Not Found) Express 加载资源失败:服务器响应状态为404(nodejs) - Failed to load resource: the server responded with a status of 404(nodejs) 加载资源失败:服务器在 MERN 中响应状态为 422(不可处理实体) - Failed to load resource: the server responded with a status of 422 (Unprocessable Entity) in MERN
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM