Ram capture fails, returning type error
Bug report
Summary
Attempting to perform a RAM capture fails in PyClient, giving error:
HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://100.71.28.66:5000/api/v2/actions/camera/ram-capture
Attempting to access RAM capture through the web API gives the same issue. Going to microscope_ip:5000/api/v2/actions/camera/ram-capture gives error code 500 and the following error
ERROR: Object of type Response is not JSON serializable
Configuration
I'm using:
Raspberry Pi 3, latest release of PiClient and a fresh SD card installation.
Steps to reproduce
Perform a RAM capture that involves calling /camera/ram-capture/
Relevant logs and/or screenshots
Log:
17/03/2021 14:19:07
ERROR: Object of type Response is not JSON serializable
/camera/ram-capture/:
{
"code": 500,
"message": "Object of type Response is not JSON serializable",
"name": "TypeError"
}