coollabsio/coolify · error · RuntimeException
Could not reach target instance at {$importUrl}: {$e->getMes
Error message
Could not reach target instance at {$importUrl}: {$e->getMessage()} What it means
Error "Could not reach target instance at {$importUrl}: {$e->getMessage()}" thrown in coollabsio/coolify.
Source
Thrown at app/Services/ServerTransfer/ServerTransferMigrator.php:156
): array {
$importUrl = $targetUrl.'/api/v1/servers/import';
try {
$response = Http::timeout(120)
->acceptJson()
->withToken($token)
->asJson()
->post($importUrl, [
'bundle' => $bundle,
'dry_run' => false,
'preserve_uuids' => $preserveUuids,
'adopt_mode' => $adoptMode,
'claim' => true,
'write_remote' => $writeRemote,
'rebind_sentinel' => $rebindSentinel,
]);
} catch (ConnectionException $e) {
throw new RuntimeException("Could not reach target instance at {$importUrl}: {$e->getMessage()}", previous: $e);
} catch (Throwable $e) {
throw new RuntimeException("Transfer to target failed: {$e->getMessage()}", previous: $e);
}
$importBody = $response->json();
if (! is_array($importBody)) {
$importBody = ['raw' => $response->body()];
}
if (! $response->successful()) {
$message = data_get($importBody, 'message')
?? data_get($importBody, 'errors')
?? $response->body();
if (is_array($message)) {
$message = json_encode($message);
}
throw new RuntimeException("Target import failed (HTTP {$response->status()}): {$message}");
}View on GitHub (pinned to 70b9acc424)
When it happens
Trigger: Thrown at app/Services/ServerTransfer/ServerTransferMigrator.php:156 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of coollabsio/coolify@70b9acc424 (2026-08-17).
Data as JSON: /api/errors/7a292ca1770faa17.
Report an issue: GitHub.