I
Immich•2y ago
nqthqn

Unable to read Metadata on specific cameras

Hello I dont understand why with some specific cameras (Nikon Coolpix P510, Nikon E5600, Olympus C4100Z) , i got this type of Metadata error : QueryFailedError: invalid input syntax for type timestamp with time zone: "0NaN-NaN-NaNTNaN:NaN:NaN.NaN+NaN:NaN" When I look the picture with exiftool, it looks like all other pictures that can be uploaded without issue. Thanks for your help
13 Replies
Alex Tran
Alex Tran•2y ago
"older picture from an older camera" ?
nqthqn
nqthqnOP•2y ago
Sorry for my english, I corrected it
Alex Tran
Alex Tran•2y ago
No problem, I want to make sure I understand you correctly and yes that would be the case of older camera doesn't write EXIF metadata very well which leads to some of the keyword we are looking for in the metadata extraction has problem with parsing the data correctly
nqthqn
nqthqnOP•2y ago
OK thanks for your answer, So I need to correct the timestamp field ?
jrasm91
jrasm91•2y ago
Well this is a bug for sure. We should handle the situation instead of saving bad data. Can you provide a sample file that produces this error that we can test with?
nqthqn
nqthqnOP•2y ago
How/Where can I sent you the file without removing metadata ?
Alex Tran
Alex Tran•2y ago
You can zip it and send it on here
nqthqn
nqthqnOP•2y ago
I put 2 sample file from different camera
jrasm91
jrasm91•2y ago
Perfect, thanks! I personally have seen several reports of this bug (NaN:NaN...) due to some invalid exif data in a file, but I've never reproduced it myself. This should help us track it down and handle the situation better.
jrasm91
jrasm91•2y ago
No description
jrasm91
jrasm91•2y ago
I got the same error as you, with this PR I was able to get it to process it correctly. https://github.com/immich-app/immich/pull/2580
nqthqn
nqthqnOP•2y ago
Thanks for your job ! 🙂 So nice that I could contribute to the project (without knowing how to code 😄 ) Hello, I installed the 1.58 version and did a Metadata refresh for missing assets and now the EXIF are readable ! Thank you 🙂
jrasm91
jrasm91•2y ago
Awesome, glad to hear!

Did you find this page helpful?