Dectris Filewriter bug when no files in http://lidxxxeiger2dcu/data
Lima throws exception when http://lidxxxeiger2dcu/data is empty. Any consecutive data acquisition does not transfer the files to the /data/visitior ot /data/inhouse, unless the device server is restarted. The exception comes from the fact that files returns null instead of string.
Not OK:
blissadm@lidxxxeiger2lima$ curl -X GET http://lidxxxeiger2dcu/filewriter/api/1.8.0/status/files
{"access_mode":"r","value":null,"value_type":"string"}
OK:
blissadm@lidxxxeiger2lima:$ curl -X GET http://lidxxxeiger2dcu/filewriter/api/1.8.0/status/files
{"access_mode":"r","value":["test_master.h5"],"value_type":"string"}
And the Lima error:
Et le Lima error qui va avec
[2021/02/18 16:59:08.844356] 7f976effd700 *Camera*Eiger::SavingCtrlObj::_PollingThread::threadFunction (/opt/conda/conda-bld/lima-camera-eiger_1610729398733/work/src/EigerCameraRequests.h:93)-Error: Exception(Error): http://lid231eiger2dcu100ge1:80/filewriter/api/1.8.0/status/files:
--------------------------------------------------------------------------------------------
EigerException
Description: wait_status:Rx value is not a string array(http://lid231eiger2dcu100ge1:80/filewriter/api/1.8.0/status/files)
Origin : void eigerapi::CurlLoop::FutureRequest::wait(double, bool) const
Location : /opt/conda/conda-bld/lima-camera-eiger_1610729398733/work/sdk/linux/EigerAPI/src/CurlLoop.cpp line 151
--------------------------------------------------------------------------------------------
[thrown]
***** Thread 7f976effd700 function exited due to an exception without clean-up! *****
Edited by Antonia Beteva