Leantime/leantime · error · Exception
Parameter $name can't be null
Error message
Parameter $name can't be null
What it means
Error "Parameter $name can't be null" thrown in Leantime/leantime.
Source
Thrown at app/Domain/Api/Controllers/Jsonrpc.php:454
if ($required) {
throw new Exception("Required Parameter Missing: $name");
}
$filtered_parameters[$position] = $methodParam->getDefaultValue();
continue;
}
// check if type is correct or can be correct
if ($methodParam->hasType()) {
if (in_array($type, [gettype($params[$name]), 'mixed'])) {
$filtered_parameters[$position] = $params[$name];
continue;
}
if ($params[$name] === null && ! $type->allowsNull()) {
throw new Exception("Parameter $name can't be null");
}
try {
$filtered_parameters[$position] = cast($params[$name], $type->getName());
} catch (\Throwable $e) {
Log::error($e);
throw new \Exception("Could not cast parameter: $name. See server logs for more details.");
}
}
if (! isset($filtered_parameters[$position])) {
$filtered_parameters[$position] = $params[$name];
}
}
// make sure it is in the right order
ksort($filtered_parameters);
View on GitHub (pinned to 9a9f49f100)
When it happens
Trigger: Thrown at app/Domain/Api/Controllers/Jsonrpc.php:454 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Leantime/leantime@9a9f49f100 (2026-08-21).
Data as JSON: /api/errors/b06c32633c03274f.
Report an issue: GitHub.