immich icon indicating copy to clipboard operation
immich copied to clipboard

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

Open ngosang opened this issue 1 year ago • 15 comments

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

.

Your .env content

.

Reproduction steps

.

Additional information

No response

ngosang avatar Dec 10 '23 16:12 ngosang

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

ForgetfulMagnet avatar Dec 10 '23 21:12 ForgetfulMagnet

Fixed in #5595 - you guys can ignore this error

alextran1502 avatar Dec 10 '23 23:12 alextran1502

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

Zhan85 avatar Jan 07 '24 20:01 Zhan85

#metoo

cybericius avatar Jan 11 '24 18:01 cybericius

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 avatar Jan 11 '24 18:01 cybericius

Error is still present in v1.97.0

tomlyo avatar Mar 01 '24 09:03 tomlyo

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 avatar Mar 01 '24 22:03 e-patrick

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

image

TobiZog avatar Mar 07 '24 09:03 TobiZog

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 avatar Mar 20 '24 13:03 frejaya

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

babaz8 avatar Apr 26 '24 14:04 babaz8

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 avatar May 09 '24 11:05 maltokyo

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

bo0tzz avatar May 09 '24 11:05 bo0tzz

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 avatar May 09 '24 11:05 maltokyo

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

maltokyo avatar May 09 '24 11:05 maltokyo

error comes from here: https://github.com/nestjs/nest/blob/6dc96d396b80d1b6e383948a8d297504e61aa671/packages/platform-express/adapters/express-adapter.ts#L111

maltokyo avatar May 09 '24 11:05 maltokyo

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 avatar May 18 '24 14:05 zigarn

This was fixed (again) in #10013.

jrasm91 avatar Jul 02 '24 21:07 jrasm91