Out of the blue issues with camera.snapshot service

The last few weeks everything was working great with the Hikvision camera i’m using inside Hassio but last last night it just stopped working ut of the blue.

The only error i get is the following,

Timeout reading image.

Followed by

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 279, in _handle_service_platform_call
    await func(entity, data)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/camera/__init__.py", line 499, in async_handle_snapshot_service
    _write_image, snapshot_file, image)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/camera/__init__.py", line 495, in _write_image
    img_file.write(image_data)
TypeError: a bytes-like object is required, not 'NoneType'

I don’t have an clue what is going wrong since i havent touched the setup the last few days. If i try to call the snapshot service manually i’m getting the same error so for one or another reason the snapshot service just broke.

I tried rebooting the camera, HassIO and even the machine it’s running on but without any luck. Some one who has an suggestion to make it work again?

Never mind… solved, seemed like an network hickup.