Loris
Loris copied to clipboard
Type error on REDCap test DET button
Problem
We noticed this error on the C-BIG port of the REDCap module. We get a type error when using the "Test" button on the REDCap DET. The reason seems to be that REDCap sends empty data to LORIS, which the module does not handle.
[Mon Jul 07 09:51:08.537544 2025] [php:notice] [pid 856230:tid 856230] [client 192.168.122.1:59502] [redcap] Unknown exception LORIS\\redcap\\client\\models\\RedcapNotification::__construct(): Argument #1 ($props) must be of type array, null given, called in /var/www/loris/project/modules/redcap/php/endpoints/notifications.class.inc on line 114
Solution
Gracefully return on empty data.