Snapshot not working with fault

Hi, I am struggling to get my HA to take a snapshot of my RTSP stream. It is showing up just find on my dashboard but if i try to call camera.snapshot, I get the following error:

Failed to call service camera/snapshot. required key not provided @ data['filename']

Can anyone help with this?