unopim/unopim · error · RuntimeException
TranslateProductValuesJob: all locales failed for {$product-
Error message
TranslateProductValuesJob: all locales failed for {$product->sku} — {failed} What it means
Error "TranslateProductValuesJob: all locales failed for {$product->sku} — {failed}" thrown in unopim/unopim.
Source
Thrown at packages/Webkul/AiAgent/src/Jobs/TranslateProductValuesJob.php:161
if ($applied === 0) {
$failed[$targetLocale] = 'no valid fields in response';
continue;
}
$succeeded[] = $targetLocale;
} catch (\Throwable $e) {
$failed[$targetLocale] = $e->getMessage();
Log::error("TranslateProductValuesJob: {$targetLocale} failed for {$product->sku}: {$e->getMessage()}");
}
}
if ($succeeded === []) {
// Nothing was translated. Surface it as a failure instead of the
// old silent "completed" so the queue retries and the operator
// can see something went wrong.
throw new \RuntimeException(
"TranslateProductValuesJob: all locales failed for {$product->sku} — ".json_encode($failed)
);
}
Log::info(sprintf(
'TranslateProductValuesJob: %s translated to %s%s',
$product->sku,
implode(', ', $succeeded),
$failed === [] ? '' : ' (failed: '.implode(', ', array_keys($failed)).')',
));
}
/**
* Collect every active locale (across all channels) except the source.
*
* @param iterable<object> $allChannels
* @return array<int, string>
*/View on GitHub (pinned to c27a402253)
When it happens
Trigger: Thrown at packages/Webkul/AiAgent/src/Jobs/TranslateProductValuesJob.php:161 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of unopim/unopim@c27a402253 (2026-08-21).
Data as JSON: /api/errors/78d0a36ceffcf83b.
Report an issue: GitHub.