[BUG] Content-Type doesn't match Reply body #1759

Closed
opened 2026-02-05 03:37:06 +03:00 by OVERLORD · 17 comments
Owner

Originally created by @ngosang on GitHub (Dec 10, 2023).

The bug

Immich is working well but I'm seeing a lot of traces like this in the log:

[Nest] 409  - 12/10/2023, 5:01:07 PM   ERROR [AssetService] Cannot create read stream for asset ec90291d-6d88-44ed-b3a4-ffedc27469f8

getAssetThumbnail

[Nest] 409  - 12/10/2023, 5:01:07 PM    WARN [ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses

The OS that Immich Server is running on

Ubuntu

Version of Immich Server

v1.90.2

Version of Immich Mobile App

v1.90.2

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

.

Your .env content

.

Reproduction steps

.

Additional information

No response

Originally created by @ngosang on GitHub (Dec 10, 2023). ### The bug Immich is working well but I'm seeing a lot of traces like this in the log: ``` [Nest] 409 - 12/10/2023, 5:01:07 PM ERROR [AssetService] Cannot create read stream for asset ec90291d-6d88-44ed-b3a4-ffedc27469f8 getAssetThumbnail [Nest] 409 - 12/10/2023, 5:01:07 PM WARN [ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses ``` ### The OS that Immich Server is running on Ubuntu ### Version of Immich Server v1.90.2 ### Version of Immich Mobile App v1.90.2 ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML . ``` ### Your .env content ```Shell . ``` ### Reproduction steps ```bash . ``` ### Additional information _No response_
Author
Owner

@ForgetfulMagnet commented on GitHub (Dec 11, 2023):

Bump. Seeing the same on my setup. Seems to have been introduced with 1.90.2.

@ForgetfulMagnet commented on GitHub (Dec 11, 2023): Bump. Seeing the same on my setup. Seems to have been introduced with 1.90.2.
Author
Owner

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

Fixed in #5595 - you guys can ignore this error

@alextran1502 commented on GitHub (Dec 11, 2023): Fixed in #5595 - you guys can ignore this error
Author
Owner

@Zhan85 commented on GitHub (Jan 7, 2024):

This does not appear to be fixed. Received this error just today.

@Zhan85 commented on GitHub (Jan 7, 2024): This does not appear to be fixed. Received this error just today.
Author
Owner

@cybericius commented on GitHub (Jan 11, 2024):

#metoo

@cybericius commented on GitHub (Jan 11, 2024): #metoo
Author
Owner

@cybericius commented on GitHub (Jan 11, 2024):

Fixed in #5595 - you guys can ignore this error
Does this mean that the warning is still there, but we can ignore it, or that it doesn't suppose to appear?

@cybericius commented on GitHub (Jan 11, 2024): > Fixed in #5595 - you guys can ignore this error Does this mean that the warning is still there, but we can ignore it, or that it doesn't suppose to appear?
Author
Owner

@tomlyo commented on GitHub (Mar 1, 2024):

Error is still present in v1.97.0

@tomlyo commented on GitHub (Mar 1, 2024): Error is still present in v1.97.0
Author
Owner

@e-patrick commented on GitHub (Mar 2, 2024):

Have the same message in the logs in v1.95.1. It appears always when I click on "Albums" in the left navigation.

@e-patrick commented on GitHub (Mar 2, 2024): Have the same message in the logs in v1.95.1. It appears always when I click on "Albums" in the left navigation.
Author
Owner

@TobiZog commented on GitHub (Mar 7, 2024):

I got this error when the browser progress bar hangs here:

image

@TobiZog commented on GitHub (Mar 7, 2024): I got this error when the browser progress bar hangs here: ![image](https://github.com/immich-app/immich/assets/67568441/89434f30-132f-41fd-8eb5-c33951eb2894)
Author
Owner

@frejaya commented on GitHub (Mar 20, 2024):

I am also still receiving this error. It happens when I try to change location for many photos at once (somewhere over 100 photos)

@frejaya commented on GitHub (Mar 20, 2024): I am also still receiving this error. It happens when I try to change location for many photos at once (somewhere over 100 photos)
Author
Owner

@phdevpro commented on GitHub (Apr 26, 2024):

Having this error too I don't know what is.

@phdevpro commented on GitHub (Apr 26, 2024): Having this error too I don't know what is.
Author
Owner

@maltokyo commented on GitHub (May 9, 2024):

Dont know if this is a duplicate (as video playback is not mentioned here in this one), but I have created another issue with the same log output, as this issue seems stale, and I provided all relevant info. New issue: https://github.com/immich-app/immich/issues/9351

@maltokyo commented on GitHub (May 9, 2024): Dont know if this is a duplicate (as video playback is not mentioned here in this one), but I have created another issue with the same log output, as this issue seems stale, and I provided all relevant info. New issue: https://github.com/immich-app/immich/issues/9351
Author
Owner

@bo0tzz commented on GitHub (May 9, 2024):

No need to create a new issue, just request this one to be reopened.

@bo0tzz commented on GitHub (May 9, 2024): No need to create a new issue, just request this one to be reopened.
Author
Owner

@maltokyo commented on GitHub (May 9, 2024):

I am not sure if it is the same issue though, as I get that error only on video playback which is not mentioned here.

@maltokyo commented on GitHub (May 9, 2024): I am not sure if it is the same issue though, as I get that error only on video playback which is not mentioned here.
Author
Owner

@maltokyo commented on GitHub (May 9, 2024):

Anyway, if we can solve it here (with the info in that other issue) that is great too.

@maltokyo commented on GitHub (May 9, 2024): Anyway, if we can solve it here (with the info in that other issue) that is great too.
Author
Owner

@maltokyo commented on GitHub (May 9, 2024):

error comes from here: 6dc96d396b/packages/platform-express/adapters/express-adapter.ts (L111)

@maltokyo commented on GitHub (May 9, 2024): error comes from here: https://github.com/nestjs/nest/blob/6dc96d396b80d1b6e383948a8d297504e61aa671/packages/platform-express/adapters/express-adapter.ts#L111
Author
Owner

@zigarn commented on GitHub (May 18, 2024):

In my nginx access logs I can correlate this log with 499 status code (custom nginx status code for "client closed request").

Related URLs generating this log:

  • /api/asset/thumbnail/{id}?format=WEBP
  • /api/asset/file/{id}?isThumb=true&isWeb=false

The warning seems logic as those URL are returning binary content of images.

@zigarn commented on GitHub (May 18, 2024): In my nginx access logs I can correlate this log with 499 status code (custom nginx status code for "client closed request"). Related URLs generating this log: - `/api/asset/thumbnail/{id}?format=WEBP` - `/api/asset/file/{id}?isThumb=true&isWeb=false` The warning seems logic as those URL are returning binary content of images.
Author
Owner

@jrasm91 commented on GitHub (Jul 3, 2024):

This was fixed (again) in #10013.

@jrasm91 commented on GitHub (Jul 3, 2024): This was fixed (again) in #10013.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1759