Search code examples
node.jsheroku

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

<link rel="shortcut icon" href="">

However I am still getting this error. Any ideas?


Solution

  • This specific problem is why packages like express-favicion and serve-favicon exist. They add a handler for the favicon.ico file.

    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.