LukeChannings/moviematch

App crash after first request OK - might be reverse proxy related

Closed this issue · 0 comments

Hi,

I'm running the app on docker on a synology, and I'm using their reverse proxy setup.
When I try to access it through the reverse proxy, the first request is working, but immediatly the app crash. It is not the case when I try access it in local directly.

Here are the logs I have:

`ERROR Error: request is not acceptable

at acceptWebSocket (https://deno.land/std@0.79.0/ws/mod.ts:437:9)

at WebSocketServer.connect (file:///app/src/util/websocketServer.ts:38:26)

at file:///app/src/index.ts:30:11

error: Uncaught (in promise) BrokenPipe: Broken pipe (os error 32)

  throw new ErrorClass(res.err.message);

        ^

at unwrapResponse (deno:runtime/js/10_dispatch_minimal.js:60:13)

at sendAsync (deno:runtime/js/10_dispatch_minimal.js:99:12)

at async write (deno:runtime/js/12_io.js:118:20)

at async Object.writeAll (deno:runtime/js/13_buffer.js:224:19)

at async BufWriter.flush (https://deno.land/std@0.79.0/io/bufio.ts:468:7)

at async writeResponse (https://deno.land/std@0.79.0/http/_io.ts:288:3)

at async ServerRequest.respond (https://deno.land/std@0.79.0/http/server.ts:84:7)

at async serveFile (file:///app/src/util/staticFileServer.ts:47:12)

`

I'm not super familiar with reverse_proxy and nginx conf, but I'm a bit surprised that it would make the app crash. I would understand not being able to reach the app, or some kind of misdirection or whatever, but making the container crash?

Anyway, any idea on what to do from here?

Thanks