krayin/laravel-crm · error · Exception
admin::app.leads.file.failed-extract
admin::app.leads.file.failed-extract
Error message
Failed to extract text from file.
What it means
Error "Failed to extract text from file." thrown in krayin/laravel-crm.
Source
Thrown at packages/Webkul/Lead/src/Services/MagicAIService.php:40
*/
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;
}
}
/**
* Extract text from base64-encoded file.
*/
private static function extractTextFromBase64File($base64File)
{
if (
empty($base64File)
|| ! base64_decode($base64File, true)View on GitHub (pinned to 13d6988cda)
When it happens
Trigger: Thrown at packages/Webkul/Lead/src/Services/MagicAIService.php:40 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/befda44057c04f6d.
Report an issue: GitHub.