You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I sorted and rated many of my photos and wanted to import them as an album, so I can easily view them in my library. However, one of my cameras wrote only numeric values in the description and image description fields. This caused a server error: TypeError: (tags.ImageDescription || tags.Description || "").trim is not a function. As a result, the images were not properly displayed (no thumbnails were generated) and all metadata was missing.
I have already solved this issue in a local dev environment to ensure this is the correct explanation and this is the causing error. A very small PR will follow ;)
1. Take an image and add a description to the EXIF Field "ImageDescription" and "Description" (eg. `exiftool -overwrite_original -ImageDescription=1234 -Description=1234 your_picture.jpg`
2. Create an external library, copy the image into that and rescan the library
3. The error should occure, have a look at the logs
Relevant log output
2024-08-07T13:47:56.637817639Z [Nest] 7 - 08/07/2024, 1:47:56 PM ERROR [Microservices:JobService] Unable to run job handler (metadataExtraction/metadata-extraction): TypeError: (tags.ImageDescription || tags.Description ||"").trim is not a function
2024-08-07T13:47:56.637993485Z [Nest] 7 - 08/07/2024, 1:47:56 PM ERROR [Microservices:JobService] TypeError: (tags.ImageDescription || tags.Description ||"").trim is not a function
2024-08-07T13:47:56.638006078Z at MetadataService.exifData (/usr/src/app/dist/services/metadata.service.js:412:76)
2024-08-07T13:47:56.638008757Z at async MetadataService.handleMetadataExtraction (/usr/src/app/dist/services/metadata.service.js:184:36)
2024-08-07T13:47:56.638010711Z at async /usr/src/app/dist/services/job.service.js:148:36
2024-08-07T13:47:56.638012590Z at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
2024-08-07T13:47:56.638014484Z at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
2024-08-07T13:47:56.638016404Z [Nest] 7 - 08/07/2024, 1:47:56 PM ERROR [Microservices:JobService] Object:
2024-08-07T13:47:56.638029162Z {
2024-08-07T13:47:56.638031538Z "id": "a920c3d9-05f0-4ab3-a864-61053ec0fd37",
2024-08-07T13:47:56.638033625Z "source": "upload"
2024-08-07T13:47:56.638035575Z }
2024-08-07T13:47:56.638037301Z
Additional information
No response
The text was updated successfully, but these errors were encountered:
The bug
I sorted and rated many of my photos and wanted to import them as an album, so I can easily view them in my library. However, one of my cameras wrote only numeric values in the description and image description fields. This caused a server error:
TypeError: (tags.ImageDescription || tags.Description || "").trim is not a function
. As a result, the images were not properly displayed (no thumbnails were generated) and all metadata was missing.I have already solved this issue in a local dev environment to ensure this is the correct explanation and this is the causing error. A very small PR will follow ;)
The OS that Immich Server is running on
Unraid (Docker) 6.12.11
Version of Immich Server
v1.111.0
Version of Immich Mobile App
v1.111.0 build.152
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: