I am trying to deploy my Node.JS site through Heroku and I keep getting this error "Failed to load ...
Home
Public
Questions
Tags
Users
Companies
Collectives
ExploreCollectives
Teams
StackOverflowforTeams
–Startcollaboratingandsharingorganizationalknowledge.
CreateafreeTeam
WhyTeams?
Teams
CreatefreeTeam
Collectives™onStackOverflow
Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost.
Learnmore
Teams
Q&Aforwork
Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch.
Learnmore
Failedtoloadresource:theserverrespondedwithastatusof503(ServiceUnavailable)favicon.ico
AskQuestion
Asked
4years,6monthsago
Modified
6monthsago
Viewed
23ktimes
3
IamtryingtodeploymyNode.JSsitethroughHerokuandIkeepgettingthiserror"Failedtoloadresource:theserverrespondedwithastatusof503(ServiceUnavailable)favicon.ico"IsearchedaroundandthoughtIwouldaddthefollowingtomyheader
HoweverIamstillgettingthiserror.Anyideas?
node.jsheroku
Share
Improvethisquestion
Follow
askedNov18,2017at4:16
Timk10Timk10
18111goldbadge66silverbadges1717bronzebadges
Addacomment
|
3Answers
3
Sortedby:
Resettodefault
Highestscore(default)
Datemodified(newestfirst)
Datecreated(oldestfirst)
4
Thisspecificproblemiswhypackageslikeexpress-favicionandserve-faviconexist.Theyaddahandlerforthefavicon.icofile.
Whatyou'vedonetherehasonlymadethingsworseasittellstheclientthattheiconforthepageisactuallythepageitself.
Share
Improvethisanswer
Follow
answeredNov18,2017at4:19
tadmantadman
201k2121goldbadges223223silverbadges248248bronzebadges
6
DoesHerokurequirethatIhaveafavicon?ThisismyfirsttimetryingtodeploysoIamunsure.Ifso,doIneedtouseanexpressfaviconmiddleware?
– Timk10
Nov18,2017at4:25
Herokudoesn'tcare,butyourbrowserdoes,anditwillrelentlesslyhoundtheserveruntilitgetsanicon.Thereasonyou'regettinganerrorisbecauseyourapplicationisnotexpectingarequestto/favicon.icoandisfreakingout.
– tadman
Nov18,2017at4:25
HowwouldyourecommendIfixitthen?
– Timk10
Nov18,2017at4:27
Useoneofthoselibraries,orsomeotherofyourchoosing,andcreateafavicon.icofilewheretheysaytoputone.Ifyoudon'thaveanICOconverter,therearebunchesofthemonline.
– tadman
Nov18,2017at4:28
Itkeepsdirectingmeto"my-heroku-app-1000.herokuapp.com/favicon.ico"DoIneedtocreateaseparatefileintherootdirectorythen?
– Timk10
Nov18,2017at4:55
|
Show1morecomment
2
Inmycase,thisissuewasseenduetothefailureofthebackendservices.Restartingthebackendservices/serverresolvedtheissueforme.
Share
Improvethisanswer
Follow
answeredMay24,2018at11:06
AmitAnandAmitAnand
25522silverbadges66bronzebadges
Addacomment
|
0
Ihadthesameproblem,afterIcheckeditturnedoutthattheVPNinmybrowserwasstillon,afterIturneditofftheproblemwasgone
Share
Improvethisanswer
Follow
answeredNov11,2021at6:09
GigaTeraGigaTera
33322silverbadges55bronzebadges
Addacomment
|
YourAnswer
ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers.
Draftsaved
Draftdiscarded
Signuporlogin
SignupusingGoogle
SignupusingFacebook
SignupusingEmailandPassword
Submit
Postasaguest
Name
Email
Required,butnevershown
PostYourAnswer
Discard
Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy
Nottheansweryou'relookingfor?Browseotherquestionstaggednode.jsherokuoraskyourownquestion.
TheOverflowBlog
Talkingblockchain,functionalprogramming,andthefuturewithTezos...
Abeginner’sguidetoJSON,thedataformatfortheinternet
FeaturedonMeta
AnnouncingthearrivalofValuedAssociate#1214:Dalmarus
Improvementstositestatusandincidentcommunication
CollectivesUpdate:IntroducingBulletins
RetiringOurCommunity-SpecificClosureReasonsforServerFaultandSuperUser
The[social]tagisintheprocessofbeingburninated
AskWizardTestResultsandNextSteps
Linked
0
WhyIget'Failedtoloadresource:theserverrespondedwithastatusof503(ServiceUnavailable)'?
Related
0
Failedtoloadresource,(ServiceUnavailable)error503
0
Gettingerror503afterdeployingnodebackendonheroku.Anyoneknowwhythiscouldbe?
0
Deployingangularprojecttoheroku
0
Gettingerrorwhenideployvueapptoheroku
0
ReactJSHerokuDeploymentError:Failedtoloadresource:theserverrespondedwithastatusof404(NotFound)
0
Failedtoloadresource:theserverrespondedwithastatusof404(NotFound).Cannotlinkjsfile
HotNetworkQuestions
I'm'nukingfromorbit'.ShouldIbotherdoingsomethingaboutfirmware?
Whatisthefirstanimatedcartoon?
HowcanIremove16GAfinishnailsfromhardwoodboards(toreusetheboards)?
Wheretolandgroundinmainpanel
MovieorepisodeofaTVseriesaboutavirtualprisondreamland
WhereisDOSstoredinmemorywhenaprogramstarts?
AtJohn5:18,didJesusbreaktheSabbath?
Whichisbesttousein我觉得学汉语不容易,但是我(会/能/可以)学?
HighlightpolygonsusingcommadelimitedtextcoordinatesQGIS
Aresurrogatekeysaknownanti-pattern?
WhydoesthisJFETbufferperformsopoorlyat82MHz?
HowdoTrinitarianswhoarguethe'egoeimi'atJohn8:58oughttobetranslated'IAM'explainthelackofreactionstothesamephrase?
Whydoesgrouprepresentationtheorylooklinear?
Whatgoesin~/.profileand~/.bashrc?
Accidentallydeletedlogfileofrunningprocess`pythonsomething.py2>&1|tee.log`.Isthereawaytostillsavetheoutputonthetmux-pane?
Whydoyoutakethesqrtof1/nforRMSE?
Numberofbridgeoxygenatomsinasilicatemineral
HowcanIdeterminewhymacOSreportsthatsystemdataincreasedbyover50Gbovernight?
`lol`isapalindrome,`dad`isn't
HowshouldIbuildanadditionalperiodictable?
Boysgetaboxthatsupposedlyhelpswithmentalpowers,byplayingthesong"JingleBells"
NintendoSwitchforatransatlantictraveller-whatfactorstoconsider?
1980’s(or70’s)showwherethemaincharactercouldteleportbypushingabuttonontheirbelt
DidtwocrisisactorsbothclaimtobethefatherofachildkilledintheUvalde,Texasshooting?
morehotquestions
Questionfeed
SubscribetoRSS
Questionfeed
TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader.
lang-js
Yourprivacy
Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy.
Acceptallcookies
Customizesettings