Closed astrobokonon closed 3 years ago
Normally I'd call this a network quirk, but everything was/is local so that's definitely not the case here.
Curiously in the archive, the file (what should have probably been 20210325_114653.jpg
) does not exist
20210325_114544.jpg 25-Mar-2021 11:45 2356
20210325_114806.jpg 25-Mar-2021 11:48 2341
Seems like I need to add some debug output to the archiving step, which is fine because I still needed to enable the archive culling so it's good to get both in there.
The error implies that the image didn't actually write to disk properly, but "Good grab!" was in a with
block so I don't really understand how that could be the case. It could be that the image was malformed even though it was all received, so it wasn't actually a valid image file?
Found an old PIL github issue and it seems like it got raised on a file of 0 bytes, so that must be it - I actually failed to get a valid image, even though the request didn't error out. I'll try to fix it at that level and be loud about it to trigger the error image.
Got archive culling in as of 26d451704f88247cffb70bc2e627e64205c3b5d7 so I think I'm done here.
Another odd one
This is related to the thumbnail creation, but at a glance I can't say why. Maybe the path got screwed up? But it says the grab was good.