Welcome! Log In Create A New Profile

Advanced

Re: Nodejs websocket 502 bad gateway

Maxim Dounin
April 07, 2014 07:54AM
Hello!

On Mon, Apr 07, 2014 at 07:38:00AM -0400, zajca wrote:

> I'm trying to make work nginx 1.4.7 with nodejs websockets
> but I'm getting 502 bad gateway
>
> NGINX Error:
> [error] 2394#0: *1 upstream prematurely closed connection while reading
> response header from upstream, client: 127.0.0.1, server: xxx.cz, request:
> "GET / HTTP/1.1", upstream: "http://127.0.0.1:8090/", host: "xxx.cz"

As per the error message, you backend closes connection for some
reason, instead of returning proper 101 Switching Protocols
response. You may want to look into your backend to find out why
it does so.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nodejs websocket 502 bad gateway

zajca April 07, 2014 07:38AM

Re: Nodejs websocket 502 bad gateway

Maxim Dounin April 07, 2014 07:54AM

Re: Nodejs websocket 502 bad gateway

zajca April 08, 2014 03:19AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready