-
Bug
-
Resolution: Fixed
-
Major
-
4.3, 4.4
-
2
-
Team Hedgehog 2024 Sprint 1.1
When adding a user to a room, matrix api is used to set the power level of the user. Settings the power level throws the following error:
Adhoc task failed: core_communication\task\add_members_to_room_task,Client error: `PUT https://synapse:8448/_matrix/client/v3/rooms/%21JDkeDDPkdLbjbZCdRy%3Asynapse/state/m.room.power_levels` resulted in a `400 Bad Request` response: {"errcode":"M_BAD_JSON","error":"\"@moodlebot:synapse\": [100] is not of type 'integer'"}Backtrace: * line 69 of /lib/guzzlehttp/guzzle/src/Middleware.php: call to GuzzleHttp\Exception\RequestException::create() * line 204 of /lib/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Middleware::GuzzleHttp\{closure}() * line 153 of /lib/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise::callHandler() * line 48 of /lib/guzzlehttp/promises/src/TaskQueue.php: call to GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() * line 248 of /lib/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\TaskQueue->run() * line 224 of /lib/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->invokeWaitFn() * line 269 of /lib/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->waitIfPending() * line 226 of /lib/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->invokeWaitList() * line 62 of /lib/guzzlehttp/promises/src/Promise.php: call to GuzzleHttp\Promise\Promise->waitIfPending() * line 123 of /lib/guzzlehttp/guzzle/src/Client.php: call to GuzzleHttp\Promise\Promise->wait() * line 287 of /communication/provider/matrix/classes/matrix_client.php: call to GuzzleHttp\Client->send() * line 70 of /communication/provider/matrix/classes/local/spec/features/matrix/update_room_power_levels_v3.php: call to communication_matrix\matrix_client->execute() * line 651 of /communication/provider/matrix/classes/communication_feature.php: call to communication_matrix\local\spec\v1p1->update_room_power_levels() * line 186 of /communication/provider/matrix/classes/communication_feature.php: call to communication_matrix\communication_feature->set_matrix_power_levels() * line 248 of /communication/provider/matrix/classes/communication_feature.php: call to communication_matrix\communication_feature->create_members() * line 42 of /communication/classes/task/add_members_to_room_task.php: call to communication_matrix\communication_feature->add_members_to_room() * line 519 of /lib/classes/cron.php: call to core_communication\task\add_members_to_room_task->execute() * line 302 of /lib/classes/cron.php: call to core\cron::run_inner_adhoc_task() * line 128 of /lib/classes/cron.php: call to core\cron::run_adhoc_tasks() * line 186 of /admin/cli/cron.php: call to core\cron::run_main_process() |
The issue might be getting the power level as an array, but needs more investigation on where it's going wrong and if it's an issue with the latest version of the matrix.
- blocks
-
MDL-78551 Implement initial group support in Communication providers
- Closed
- has a non-specific relationship to
-
MDL-80862 Locks are not released on failed tasks during tests
- Closed
- is a regression caused by
-
MDL-80403 User sync bug when role change performed on users who aren't in Matrix yet
- Closed