No still image with mjpeg camera

Hi all,

I have an Eminent EM6220 ip camera. I’ve had this setup in Hassio for some time now but was still left wondering: why doesn’t the card in the overview show a still image? This is my setup in configuration.yaml:

camera:
  - platform: mjpeg
    name: Kitchen Camera
    still_image_url: http://192.168.1.12:81/snapshot.cgi
    mjpeg_url: http://192.168.1.12:81/videostream.cgi
    username: admin
    password: ipcam

The live videostream does show when clicking on the card, it’s just the still image that doesn’t.
Using DevTools in Chrome I can see the following error message:

Dev-info of Hassio gives the error log details:

Error getting new camera image: 400, message='invalid character in header'
17:58 components/camera/mjpeg.py (ERROR)

Does anyone have an idea why this is happening and how it could be resolved?

Resolved, looks like this specific camera model returned incorrect HTTP response headers: https://github.com/home-assistant/home-assistant/issues/14960