Weird image upload error
- baldheadracing
- Team HB
- Posts: 6289
- Joined: 9 years ago
I'm getting this error when I try to upload some images. The file appears to upload but then the progress bar freezes at the end of the upload, and then I get this:
There doesn't seem to be any pattern ... Android, PC, or Mac; Firefox, Chrome, and Safari - all give the same error.
I think that it has something to do with specific images as I'm (obviously) able to upload some images. However, for the images that don't work it doesn't matter if the image is resized, saved in a different format, filename, extension, etc., or even if I screen-capture the desktop with the image on the screen, and try to upload the saved and cropped screen capture.
Here is a sample image that causes the issue: https://photos.app.goo.gl/mQmCQbs2ab2PN4w6A
I'm stumped.
There doesn't seem to be any pattern ... Android, PC, or Mac; Firefox, Chrome, and Safari - all give the same error.
I think that it has something to do with specific images as I'm (obviously) able to upload some images. However, for the images that don't work it doesn't matter if the image is resized, saved in a different format, filename, extension, etc., or even if I screen-capture the desktop with the image on the screen, and try to upload the saved and cropped screen capture.
Here is a sample image that causes the issue: https://photos.app.goo.gl/mQmCQbs2ab2PN4w6A
I'm stumped.
-"Good quality brings happiness as you use it" - Nobuho Miya, Kamasada
- Randy G.
- Posts: 5340
- Joined: 17 years ago
- HB
- Admin
- Posts: 22028
- Joined: 19 years ago
It works for me too. The "warning" triangle indicates that there was an unexpected response. What browser are you using? Click here.
If you click the triangle, it usually displays a useless message like "HTTP error" (duh). I can upload a debug version that will show the actual error.
Browser is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15
Dan Kehn
- baldheadracing (original poster)
- Team HB
- Posts: 6289
- Joined: 9 years ago
So it's me. Ugh, sorry .
Anyhow this is what I get in FFox/Android and Safari/MacOS:
Mac:
Anyhow this is what I get in FFox/Android and Safari/MacOS:
User Agent
Browser is Mozilla/5.0 (Android 12; Mobile; rv:99.0) Gecko/99.0 Firefox/99.0
Mobile: true
Tablet: false
Capability: A
Android: true
Ad blocker: false (next check on 04-18-2022 @ 11:38am)
Do not track: true
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Mac:
User Agent
Browser is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15
Mobile: false
Tablet: false
Capability: A
Android: false
Ad blocker: true
Do not track: false
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
-"Good quality brings happiness as you use it" - Nobuho Miya, Kamasada
- HB
- Admin
- Posts: 22028
- Joined: 19 years ago
That message is actually helpful, go figure!
That error occurs on the server side when it tries to validate the image post-upload. It fails if (a) the image metadata is invalid or (b) the HTTP header from the browser doesn't specify the payload is actually an image. It's just a wild guess, but maybe an ad blocker or privacy extension or VPN is suppressing one of the headers (case b) and that's causing the server to wrongly assume it's not actually an image.
That error occurs on the server side when it tries to validate the image post-upload. It fails if (a) the image metadata is invalid or (b) the HTTP header from the browser doesn't specify the payload is actually an image. It's just a wild guess, but maybe an ad blocker or privacy extension or VPN is suppressing one of the headers (case b) and that's causing the server to wrongly assume it's not actually an image.
Dan Kehn
- baldheadracing (original poster)
- Team HB
- Posts: 6289
- Joined: 9 years ago
Tried removing the one Safari extension that I have - no change.
Why some images consistently upload and other images consistently don't validate - and just for me
However, I just discovered something ... when I use cellular data it works, but when I use my home Wi-Fi, it doesn't work .
That sounds ominous for my network security ... <sigh>
Why some images consistently upload and other images consistently don't validate - and just for me
However, I just discovered something ... when I use cellular data it works, but when I use my home Wi-Fi, it doesn't work .
That sounds ominous for my network security ... <sigh>
-"Good quality brings happiness as you use it" - Nobuho Miya, Kamasada
- HB
- Admin
- Posts: 22028
- Joined: 19 years ago
That is truly odd. My first thought was that your Wi-Fi network or router has a bug. A restart or firmware update is my go-to response when ours misbehaves. Or you're being targeted by the NSA.
More seriously, if you think it's a corrupted image that's being "tolerated" by some browsers and not others, you could try uploading to ezgif (choose "GIF Maker") and then downloading as a JPG with their "Optimize" option. Presumably that would read the raw image data and rewrite the metadata/image data from scratch.
More seriously, if you think it's a corrupted image that's being "tolerated" by some browsers and not others, you could try uploading to ezgif (choose "GIF Maker") and then downloading as a JPG with their "Optimize" option. Presumably that would read the raw image data and rewrite the metadata/image data from scratch.
Dan Kehn
- baldheadracing (original poster)
- Team HB
- Posts: 6289
- Joined: 9 years ago
Image format changing didn't work. I guess that it is something in the router or upstream ... or the CSE (Canadian intelligence monitoring agency).
I'm sure it will magically correct itself in a week or so.
ETA: or a minute???!!!??? seems okay so far ...
I'm sure it will magically correct itself in a week or so.
ETA: or a minute???!!!??? seems okay so far ...
-"Good quality brings happiness as you use it" - Nobuho Miya, Kamasada
- HB
- Admin
- Posts: 22028
- Joined: 19 years ago
Apparently the CSE has finished with their investigation. It was great knowing you.
Dan Kehn
- baldheadracing (original poster)
- Team HB
- Posts: 6289
- Joined: 9 years ago
There was just a knock on the door ... but it was DHL.
-"Good quality brings happiness as you use it" - Nobuho Miya, Kamasada