krayin/laravel-crm · error · Exception
admin::app.leads.file.recursive-call
admin::app.leads.file.recursive-call
Error message
Recursive call detected.
What it means
Error "Recursive call detected." thrown in krayin/laravel-crm.
Source
Thrown at packages/Webkul/Lead/src/Services/MagicAIService.php:31
const OPEN_ROUTER_URL = 'https://openrouter.ai/api/v1/chat/completions';
/**
* Maximum token limit for AI prompt.
*/
const MAX_TOKENS = 100000;
/**
* Flag to prevent re-entrant calls.
*/
private static $isExtracting = false;
/**
* Extract data from base64-encoded file.
*/
public static function extractDataFromFile($base64File)
{
if (self::$isExtracting) {
throw new Exception(trans('admin::app.leads.file.recursive-call'));
}
self::$isExtracting = true;
try {
$text = self::extractTextFromBase64File($base64File);
if (empty($text)) {
throw new Exception(trans('admin::app.leads.file.failed-extract'));
}
return self::processPromptWithAI($text);
} catch (Exception $e) {
return ['error' => $e->getMessage()];
} finally {
self::$isExtracting = false;
}
}View on GitHub (pinned to 13d6988cda)
When it happens
Trigger: Thrown at packages/Webkul/Lead/src/Services/MagicAIService.php:31 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of krayin/laravel-crm@13d6988cda (2026-08-17).
Data as JSON: /api/errors/8de7b1d4e9b759d1.
Report an issue: GitHub.