NetworkError: 502 Bad Gateway

71 views
Skip to first unread message

Vincenzo Lorenzale

unread,
Dec 13, 2015, 2:44:41 AM12/13/15
to Cloudnode
I just configured my app host.cloudno.de which is a nodejs express server. Whenever I try to access it I get

{502}

host.cloudno.de

Application is offline


and in my browser's firebug log: "NetworkError: 502 Bad Gateway - http://host.cloudno.de/"

IntestazioniRispostaHTMLCacheCookie

Visualizza come testo semplice
Connectionkeep-alive
Content-Typetext/html
DateSun, 13 Dec 2015 07:13:51 GMT
Servernginx
Transfer-Encodingchunked
Visualizza come testo semplice
Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encodinggzip, deflate
Accept-Languageit-IT,it;q=0.8,en-US;q=0.5,en;q=0.3
Connectionkeep-alive
Cookie__utma=17775078.28780449.1448188252.1449928800.1449990495.33; __utmz=17775078.1448205835.2.2.utmcsr=docs.cloudno.de|utmccn=(referral)|utmcmd=referral|utmcct=/quick-start-guide.html; __utmc=17775078; __utmb=17775078.1.10.1449990495; __utmt=1
Hosthost.cloudno.de
User-AgentMozilla/5.0 (Windows NT 10.0; rv:42.0) Gecko/20100101 Firefox/42.0

Vincenzo Lorenzale

unread,
Dec 13, 2015, 3:23:45 AM12/13/15
to Cloudnode
Hi, please disregard this problem, I found a configuration error in my code... Now the app works nicely..

Vincenzo Lorenzale

unread,
Dec 13, 2015, 3:30:04 AM12/13/15
to Cloudnode
Please disregard my original post since I found a config error in my code: now the app works nicely.

Best regards
Vincenzo
















Il giorno domenica 13 dicembre 2015 08:44:41 UTC+1, Vincenzo Lorenzale ha scritto:

Hans Schroeder

unread,
Dec 13, 2015, 3:45:39 AM12/13/15
to Cloudnode
Hi, thanks for letting me know that this has been solved.

Here is some additional explanation regarding this error. When you start your app the platform is configured to route all traffic for your subdomain or custom domain to your node.js server.

When the server is not started, the route is not programmed and you will get a 404 (not found) error.
When the server is started and the route is programmed, your server will set the http result code. 
When the server has been start but is not running anymore and accepting requests, you will get a 502 (app offline) error.

- Hans
Reply all
Reply to author
Forward
0 new messages