mars / heroku-cra-node

⚛️ How to use create-react-app with a custom Node server on Heroku
MIT License
927 stars 226 forks source link

Heroku: Failed to load resource: the server responded with a status of 503 (Service Unavailable) /favicon.ico #39

Closed albertothedev closed 4 years ago

albertothedev commented 4 years ago

I get this error everytime I open the app on Heroku. I have tried using serve-favicon but it doesn't seem to work. Here is my repo.

EDIT: The problem had nothing to do with the favicon. The error displayed in the console was just the result of another thing failing to work properly. In my case, this was the connection to mongoDB Atlas. I changed my database to Heroku's mLab addon for mongoDB and everything deployed perfectly.

This error wasn't being logged on the console so I had to look at Heroku's logs to find what was wrong. See here to learn about logging on Heroku.

mars commented 4 years ago

Hi @albertothedev 😄

HTTP status 503 typically means your app is crashed not able to serve requests. If there's a platform incident/outage happening at Heroku, then that could temporarily cause 503 responses as well. See: Heroku Status.

What do the heroku logs show for the app? Is it crashing? What is causing it to crash? If it started crashing when you implemented serve-favicon, then look into how your code is working, perhaps researching or opening an issue with that package.

This is not a problem with this example repo, but an issue with the code/implementation. Closing.