[BUG] Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client #1795

Closed
opened 2026-02-05 03:50:30 +03:00 by OVERLORD · 25 comments
Owner

Originally created by @dsm1212 on GitHub (Dec 16, 2023).

The bug

After updating to 1.91.0 I'm seeing these messages in the server log:

[Nest] 8 - 12/15/2023, 9:38:56 PM ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client
Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client
at ServerResponse.removeHeader (node:_http_outgoing:782:11)
at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:214:10)
at ExpressAdapter.reply (/usr/src/app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29)
at RouterResponseController.apply (/usr/src/app/node_modules/@nestjs/core/router/router-response-controller.js:15:36)
at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:175:48
at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:47:13
at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17

The system is working fine and my read of the error is that it is benign but the code apparently is doing someting to the response after it has been sent. This is usually bug. unfortuntely I'm not getting enough of the call stack to know where to look in immich.

The OS that Immich Server is running on

Debian (docker)

Version of Immich Server

v1.91.0

Version of Immich Mobile App

N/A

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

services:
  immich-server:
    container_name: immich_server
    hostname: immich-server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    network_mode: svcnet
    command: ["start.sh", "immich"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro 
      - /media/pictures/<redacted>:/media/pictures/<redacted>:ro
      - /apps/immich:/apps/immich
    user: "1030:1001"
#    ports:
#      - 2283:3001
    env_file:
      - immich.env
    depends_on:
      - redis
      - database
    restart: always

  immich-microservices:
    container_name: immich_microservices
    hostname: immich-microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    network_mode: svcnet
    # extends:
    #   file: hwaccel.yml
    #   service: hwaccel
    command: ["start.sh", "microservices"]
    #user: "1030:1001"
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
      - /media/pictures/<redacted>:/media/pictures/<redacted>:ro
      - /apps/immich:/apps/immich
    env_file:
      - immich.env
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    hostname: immich-machine-learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    network_mode: svcnet
    volumes:
      - model-cache:/cache
    env_file:
      - immich.env
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
    network_mode: svcnet
    volumes:
      - redisdata:/data	
    restart: always

  database:
    container_name: immich_postgres
    image: tensorchord/pgvecto-rs:pg14-v0.1.11
    network_mode: svcnet
    env_file:
      - immich.env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:
  redisdata:

Your .env content

# The location where your uploaded files are stored
UPLOAD_LOCATION=/unsafe/immich

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

IMMICH_CONFIG_FILE=/apps/immich/immich.config

# Connection secrets for postgres and typesense. You should change these to random passwords
TYPESENSE_API_KEY=<redacted>
DB_PASSWORD=<redacted>

TZ=America/New_York

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis

Reproduction steps

As I browse in image the server logs these messages.

Additional information

I use swag. here is my proxy config. I already had the http settings you suggested in a shared proxy.cfg file.

server {
listen 443 ssl;
listen [::]:443 ssl;

server_name immich.*;

include /config/nginx/ssl.conf;

client_max_body_size 50000M;

location / {
    include /config/nginx/proxy.conf;
    include /config/nginx/resolver.conf;
    set $upstream_app immich_server;
    set $upstream_port 3001;
    set $upstream_proto http;
    proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}

}

Originally created by @dsm1212 on GitHub (Dec 16, 2023). ### The bug After updating to 1.91.0 I'm seeing these messages in the server log: [Nest] 8 - 12/15/2023, 9:38:56 PM ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client at ServerResponse.removeHeader (node:_http_outgoing:782:11) at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:214:10) at ExpressAdapter.reply (/usr/src/app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29) at RouterResponseController.apply (/usr/src/app/node_modules/@nestjs/core/router/router-response-controller.js:15:36) at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:175:48 at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:47:13 at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17 The system is working fine and my read of the error is that it is benign but the code apparently is doing someting to the response after it has been sent. This is usually bug. unfortuntely I'm not getting enough of the call stack to know where to look in immich. ### The OS that Immich Server is running on Debian (docker) ### Version of Immich Server v1.91.0 ### Version of Immich Mobile App N/A ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" services: immich-server: container_name: immich_server hostname: immich-server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} network_mode: svcnet command: ["start.sh", "immich"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /media/pictures/<redacted>:/media/pictures/<redacted>:ro - /apps/immich:/apps/immich user: "1030:1001" # ports: # - 2283:3001 env_file: - immich.env depends_on: - redis - database restart: always immich-microservices: container_name: immich_microservices hostname: immich-microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} network_mode: svcnet # extends: # file: hwaccel.yml # service: hwaccel command: ["start.sh", "microservices"] #user: "1030:1001" volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /media/pictures/<redacted>:/media/pictures/<redacted>:ro - /apps/immich:/apps/immich env_file: - immich.env depends_on: - redis - database restart: always immich-machine-learning: container_name: immich_machine_learning hostname: immich-machine-learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} network_mode: svcnet volumes: - model-cache:/cache env_file: - immich.env restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3 network_mode: svcnet volumes: - redisdata:/data restart: always database: container_name: immich_postgres image: tensorchord/pgvecto-rs:pg14-v0.1.11 network_mode: svcnet env_file: - immich.env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - pgdata:/var/lib/postgresql/data restart: always volumes: pgdata: model-cache: redisdata: ``` ### Your .env content ```Shell # The location where your uploaded files are stored UPLOAD_LOCATION=/unsafe/immich # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release IMMICH_CONFIG_FILE=/apps/immich/immich.config # Connection secrets for postgres and typesense. You should change these to random passwords TYPESENSE_API_KEY=<redacted> DB_PASSWORD=<redacted> TZ=America/New_York # The values below this line do not need to be changed ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis ``` ### Reproduction steps ```bash As I browse in image the server logs these messages. ``` ### Additional information I use swag. here is my proxy config. I already had the http settings you suggested in a shared proxy.cfg file. server { listen 443 ssl; listen [::]:443 ssl; server_name immich.*; include /config/nginx/ssl.conf; client_max_body_size 50000M; location / { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app immich_server; set $upstream_port 3001; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } }
Author
Owner

@hobbsAU commented on GitHub (Dec 16, 2023):

I have the same issue v1.91.0, using traefik as a proxy to immich-server.

immich-immich-server-1            | [Nest] 7  - 12/16/2023, 7:16:13 AM     LOG [CommunicationRepository] Websocket Connect:    xxxxxxxxxxxxxxxxxxx
immich-immich-server-1            | [Nest] 7  - 12/16/2023, 7:16:13 AM   ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client
immich-immich-server-1            | Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client
immich-immich-server-1            |     at ServerResponse.removeHeader (node:_http_outgoing:782:11)
immich-immich-server-1            |     at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:214:10)
immich-immich-server-1            |     at ExpressAdapter.reply (/usr/src/app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29)
immich-immich-server-1            |     at RouterResponseController.apply (/usr/src/app/node_modules/@nestjs/core/router/router-response-controller.js:15:36)
immich-immich-server-1            |     at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:175:48
immich-immich-server-1            |     at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:47:13
immich-immich-server-1            |     at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17

@hobbsAU commented on GitHub (Dec 16, 2023): I have the same issue v1.91.0, using traefik as a proxy to immich-server. ``` immich-immich-server-1 | [Nest] 7 - 12/16/2023, 7:16:13 AM LOG [CommunicationRepository] Websocket Connect: xxxxxxxxxxxxxxxxxxx immich-immich-server-1 | [Nest] 7 - 12/16/2023, 7:16:13 AM ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client immich-immich-server-1 | Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client immich-immich-server-1 | at ServerResponse.removeHeader (node:_http_outgoing:782:11) immich-immich-server-1 | at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:214:10) immich-immich-server-1 | at ExpressAdapter.reply (/usr/src/app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29) immich-immich-server-1 | at RouterResponseController.apply (/usr/src/app/node_modules/@nestjs/core/router/router-response-controller.js:15:36) immich-immich-server-1 | at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:175:48 immich-immich-server-1 | at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:47:13 immich-immich-server-1 | at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17 ```
Author
Owner

@lslvxy commented on GitHub (Dec 16, 2023):

same +1 app auto backup also failed

@lslvxy commented on GitHub (Dec 16, 2023): same +1 app auto backup also failed
Author
Owner

@Arbide commented on GitHub (Dec 16, 2023):

+1 here. Same error.

@Arbide commented on GitHub (Dec 16, 2023): +1 here. Same error.
Author
Owner

@TomasValenta commented on GitHub (Dec 16, 2023):

Same here, it happens on page refresh and just shows a blank page.

@TomasValenta commented on GitHub (Dec 16, 2023): Same here, it happens on page refresh and just shows a blank page.
Author
Owner

@traktuner commented on GitHub (Dec 16, 2023):

Same here. Refresh - blank page since 1.91.0.

[Nest] 653  - 12/16/2023, 3:22:03 PM    WARN [ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses
[Nest] 653  - 12/16/2023, 3:22:30 PM   ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client


Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client

    at ServerResponse.removeHeader (node:_http_outgoing:782:11)

    at ServerResponse.send (/app/immich/server/node_modules/express/lib/response.js:214:10)

    at ExpressAdapter.reply (/app/immich/server/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29)

    at RouterResponseController.apply (/app/immich/server/node_modules/@nestjs/core/router/router-response-controller.js:15:36)

    at /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:175:48

    at async /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:47:13

    at async /app/immich/server/node_modules/@nestjs/core/router/router-proxy.js:9:17
@traktuner commented on GitHub (Dec 16, 2023): Same here. Refresh - blank page since 1.91.0. ``` [Nest] 653 - 12/16/2023, 3:22:03 PM WARN [ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses [Nest] 653 - 12/16/2023, 3:22:30 PM ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client at ServerResponse.removeHeader (node:_http_outgoing:782:11) at ServerResponse.send (/app/immich/server/node_modules/express/lib/response.js:214:10) at ExpressAdapter.reply (/app/immich/server/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29) at RouterResponseController.apply (/app/immich/server/node_modules/@nestjs/core/router/router-response-controller.js:15:36) at /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:175:48 at async /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:47:13 at async /app/immich/server/node_modules/@nestjs/core/router/router-proxy.js:9:17 ```
Author
Owner

@alextran1502 commented on GitHub (Dec 16, 2023):

@jrasm91 Any thoughts on this error Jason? I can't reproduce the blank page issue

@alextran1502 commented on GitHub (Dec 16, 2023): @jrasm91 Any thoughts on this error Jason? I can't reproduce the blank page issue
Author
Owner

@waclaw66 commented on GitHub (Dec 16, 2023):

Who is not using Docker? I don't. Maybe it's related.

@waclaw66 commented on GitHub (Dec 16, 2023): Who is not using Docker? I don't. Maybe it's related.
Author
Owner

@alextran1502 commented on GitHub (Dec 16, 2023):

@traktuner @TomasValenta Are you guys using docker/docker-compose to deploy Immich?

@alextran1502 commented on GitHub (Dec 16, 2023): @traktuner @TomasValenta Are you guys using docker/docker-compose to deploy Immich?
Author
Owner

@cookandy commented on GitHub (Dec 16, 2023):

Hi. I'm also having this issue, and am using https://github.com/imagegenius/docker-immich to deploy, along with the tensorchord/pgvecto-rs:pg15-v0.1.11 psql image.

@cookandy commented on GitHub (Dec 16, 2023): Hi. I'm also having this issue, and am using https://github.com/imagegenius/docker-immich to deploy, along with the `tensorchord/pgvecto-rs:pg15-v0.1.11` psql image.
Author
Owner

@nicokaiser commented on GitHub (Dec 16, 2023):

Same here. But no blank page, frontend seems to work correctly. Docker containers via Traefik.

@nicokaiser commented on GitHub (Dec 16, 2023): Same here. But no blank page, frontend seems to work correctly. Docker containers via Traefik.
Author
Owner

@traktuner commented on GitHub (Dec 16, 2023):

@traktuner @TomasValenta Are you guys using docker/docker-compose to deploy Immich?

Yes, docker-compose image
@martabal AIO image

@traktuner commented on GitHub (Dec 16, 2023): > @traktuner @TomasValenta Are you guys using docker/docker-compose to deploy Immich? Yes, docker-compose image @martabal AIO image
Author
Owner

@martabal commented on GitHub (Dec 16, 2023):

The blank page issue should been have solved with #5753.

Will be fixed for the AIO when https://github.com/imagegenius/docker-immich/pull/255 is merged

@martabal commented on GitHub (Dec 16, 2023): The blank page issue should been have solved with #5753. Will be fixed for the AIO when https://github.com/imagegenius/docker-immich/pull/255 is merged
Author
Owner

@dsm1212 commented on GitHub (Dec 16, 2023):

I just took an immich update and this message is now gone. I can't get it to reappear. Normally I would resolve since I submitted it, but since there are so many others here I'll leave to whomever fixed it to resolve.

@dsm1212 commented on GitHub (Dec 16, 2023): I just took an immich update and this message is now gone. I can't get it to reappear. Normally I would resolve since I submitted it, but since there are so many others here I'll leave to whomever fixed it to resolve.
Author
Owner

@waclaw66 commented on GitHub (Dec 17, 2023):

That error message "Cannot remove headers after they are sent to the client" persists in 1.91.2. Blank page was fixed by https://github.com/immich-app/immich/pull/5753.

@waclaw66 commented on GitHub (Dec 17, 2023): That error message "Cannot remove headers after they are sent to the client" persists in 1.91.2. Blank page was fixed by https://github.com/immich-app/immich/pull/5753.
Author
Owner

@waclaw66 commented on GitHub (Dec 17, 2023):

Additionally seeing a lot of...
[ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses

@waclaw66 commented on GitHub (Dec 17, 2023): Additionally seeing a lot of... `[ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses`
Author
Owner

@dabenzel commented on GitHub (Dec 17, 2023):

I have this error too in 1.91.2

Logs:

immich_server            | Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client
immich_server            |     at ServerResponse.removeHeader (node:_http_outgoing:782:11)
immich_server            |     at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:214:10)
immich_server            |     at ExpressAdapter.reply (/usr/src/app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29)
immich_server            |     at RouterResponseController.apply (/usr/src/app/node_modules/@nestjs/core/router/router-response-controller.js:15:36)
immich_server            |     at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:175:48
immich_server            |     at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:47:13
immich_server            |     at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17
i`
@dabenzel commented on GitHub (Dec 17, 2023): I have this error too in 1.91.2 Logs: ```immich_server | [Nest] 7 - 12/17/2023, 10:48:08 AM ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client immich_server | Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client immich_server | at ServerResponse.removeHeader (node:_http_outgoing:782:11) immich_server | at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:214:10) immich_server | at ExpressAdapter.reply (/usr/src/app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29) immich_server | at RouterResponseController.apply (/usr/src/app/node_modules/@nestjs/core/router/router-response-controller.js:15:36) immich_server | at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:175:48 immich_server | at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:47:13 immich_server | at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17 i`
Author
Owner

@traktuner commented on GitHub (Dec 17, 2023):

1.91.2


[Nest] 591  - 12/17/2023, 1:06:05 PM   ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client
Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client
    at ServerResponse.removeHeader (node:_http_outgoing:782:11)
    at ServerResponse.send (/app/immich/server/node_modules/express/lib/response.js:214:10)
    at ExpressAdapter.reply (/app/immich/server/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29)
    at RouterResponseController.apply (/app/immich/server/node_modules/@nestjs/core/router/router-response-controller.js:15:36)
    at /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:175:48
    at async /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:47:13
    at async /app/immich/server/node_modules/@nestjs/core/router/router-proxy.js:9:17
@traktuner commented on GitHub (Dec 17, 2023): 1.91.2 ``` [Nest] 591 - 12/17/2023, 1:06:05 PM ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client at ServerResponse.removeHeader (node:_http_outgoing:782:11) at ServerResponse.send (/app/immich/server/node_modules/express/lib/response.js:214:10) at ExpressAdapter.reply (/app/immich/server/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29) at RouterResponseController.apply (/app/immich/server/node_modules/@nestjs/core/router/router-response-controller.js:15:36) at /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:175:48 at async /app/immich/server/node_modules/@nestjs/core/router/router-execution-context.js:47:13 at async /app/immich/server/node_modules/@nestjs/core/router/router-proxy.js:9:17 ```
Author
Owner

@martabal commented on GitHub (Dec 17, 2023):

I only have this issue when using my reverse proxy

@martabal commented on GitHub (Dec 17, 2023): I only have this issue when using my reverse proxy
Author
Owner

@mvivaldi commented on GitHub (Dec 17, 2023):

same problem in 1.91.3, and now (I don't know if this is related) my android phone backup the photos but there is none in web interface (with 1.91.2 everything was working fine)

nvm: my phone changed the location (different timezone) and the photos was taken in the future... after one hour (difference of timezone) the photos showed in the web interface

@mvivaldi commented on GitHub (Dec 17, 2023): same problem in 1.91.3, _and now (I don't know if this is related) my android phone backup the photos but there is none in web interface (with 1.91.2 everything was working fine)_ nvm: my phone changed the location (different timezone) and the photos was taken in the future... after one hour (difference of timezone) the photos showed in the web interface
Author
Owner

@cohen87 commented on GitHub (Dec 18, 2023):

Same error im experiencing when trying to perform a search in 1.91.2

@cohen87 commented on GitHub (Dec 18, 2023): Same error im experiencing when trying to perform a search in 1.91.2
Author
Owner

@ma0dan commented on GitHub (Dec 18, 2023):

@mvivaldi @lslvxy @martabal backup issue may relate with reverse-proxy's config like in nginx client_max_body_size

@ma0dan commented on GitHub (Dec 18, 2023): @mvivaldi @lslvxy @martabal backup issue may relate with reverse-proxy's config like in nginx `client_max_body_size`
Author
Owner

@ZeroPing01 commented on GitHub (Dec 19, 2023):

Same issue when I reload or scroll a page (not a specific page) but no blank page, frontend seems to work correctly. Docker (compose) containers via Nginx.
I'm using this :

client_max_body_size 50000M; 

Version : 1.91.3

[Nest] 7  - 12/19/2023, 2:53:19 AM   ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client
Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client
    at ServerResponse.removeHeader (node:_http_outgoing:782:11)
    at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:214:10)
    at ExpressAdapter.reply (/usr/src/app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29)
    at RouterResponseController.apply (/usr/src/app/node_modules/@nestjs/core/router/router-response-controller.js:15:36)
    at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:175:48
    at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:47:13
    at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17

What am I supposed to do ?
Thanks

@ZeroPing01 commented on GitHub (Dec 19, 2023): Same issue when I reload or scroll a page (not a specific page) but no blank page, frontend seems to work correctly. Docker (compose) containers via Nginx. I'm using this : ``` client_max_body_size 50000M; ``` Version : 1.91.3 ``` [Nest] 7 - 12/19/2023, 2:53:19 AM ERROR [ExceptionsHandler] Cannot remove headers after they are sent to the client Error [ERR_HTTP_HEADERS_SENT]: Cannot remove headers after they are sent to the client at ServerResponse.removeHeader (node:_http_outgoing:782:11) at ServerResponse.send (/usr/src/app/node_modules/express/lib/response.js:214:10) at ExpressAdapter.reply (/usr/src/app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:31:29) at RouterResponseController.apply (/usr/src/app/node_modules/@nestjs/core/router/router-response-controller.js:15:36) at /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:175:48 at async /usr/src/app/node_modules/@nestjs/core/router/router-execution-context.js:47:13 at async /usr/src/app/node_modules/@nestjs/core/router/router-proxy.js:9:17 ``` What am I supposed to do ? Thanks
Author
Owner

@dabenzel commented on GitHub (Dec 19, 2023):

What am I supposed to do ?

Update.

@dabenzel commented on GitHub (Dec 19, 2023): > What am I supposed to do ? Update.
Author
Owner

@ricardomga commented on GitHub (Jun 14, 2024):

I have a similar log when i try to load some videos, when this happens the video seems to load very slow

[Nest] 17  - 06/14/2024, 4:36:17 PM   ERROR [Api:LoggerRepository~sb9vgm39] Unable to send file: Error
Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:95:16)
    at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17)
[Nest] 17  - 06/14/2024, 4:36:17 PM   ERROR [Api:Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at ServerResponse.setHeader (node:_http_outgoing:659:11)
    at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:795:10)
    at sendFile (/usr/src/app/dist/utils/file.js:61:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async AssetMediaController.playAssetVideo (/usr/src/app/dist/controllers/asset-media.controller.js:60:9)~sb9vgm39] Failed to play asset video
[Nest] 17  - 06/14/2024, 4:36:17 PM   ERROR [Api:Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at ServerResponse.setHeader (node:_http_outgoing:659:11)
    at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:795:10)
    at sendFile (/usr/src/app/dist/utils/file.js:61:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async AssetMediaController.playAssetVideo (/usr/src/app/dist/controllers/asset-media.controller.js:60:9)~sb9vgm39] Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
@ricardomga commented on GitHub (Jun 14, 2024): I have a similar log when i try to load some videos, when this happens the video seems to load very slow ``` [Nest] 17 - 06/14/2024, 4:36:17 PM ERROR [Api:LoggerRepository~sb9vgm39] Unable to send file: Error Error: write EPIPE at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:95:16) at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17) [Nest] 17 - 06/14/2024, 4:36:17 PM ERROR [Api:Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at ServerResponse.setHeader (node:_http_outgoing:659:11) at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:795:10) at sendFile (/usr/src/app/dist/utils/file.js:61:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async AssetMediaController.playAssetVideo (/usr/src/app/dist/controllers/asset-media.controller.js:60:9)~sb9vgm39] Failed to play asset video [Nest] 17 - 06/14/2024, 4:36:17 PM ERROR [Api:Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at ServerResponse.setHeader (node:_http_outgoing:659:11) at ServerResponse.header (/usr/src/app/node_modules/express/lib/response.js:795:10) at sendFile (/usr/src/app/dist/utils/file.js:61:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async AssetMediaController.playAssetVideo (/usr/src/app/dist/controllers/asset-media.controller.js:60:9)~sb9vgm39] Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client ```
Author
Owner

@jrasm91 commented on GitHub (Jun 14, 2024):

Fixed again in #10289, which will be in the next release.

@jrasm91 commented on GitHub (Jun 14, 2024): Fixed again in #10289, which will be in the next release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1795