-
Notifications
You must be signed in to change notification settings - Fork 191
Open
Labels
Category: BugPR or issue that aims to report or fix a bugPR or issue that aims to report or fix a bugDifficulty: SimplePR or issue that should be easy to implement, review, or testPR or issue that should be easy to implement, review, or testModule: redcapPR or issue related to redcap modulePR or issue related to redcap module
Description
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.
Metadata
Metadata
Assignees
Labels
Category: BugPR or issue that aims to report or fix a bugPR or issue that aims to report or fix a bugDifficulty: SimplePR or issue that should be easy to implement, review, or testPR or issue that should be easy to implement, review, or testModule: redcapPR or issue related to redcap modulePR or issue related to redcap module