coollabsio/coolify · error · RuntimeException

Target import failed (HTTP {$response->status()}): {$message

Error message

Target import failed (HTTP {$response->status()}): {$message}

What it means

Error "Target import failed (HTTP {$response->status()}): {$message}" thrown in coollabsio/coolify.

Source

Thrown at app/Services/ServerTransfer/ServerTransferMigrator.php:173

        } 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}");
        }

        return $importBody;
    }
}

View on GitHub (pinned to 70b9acc424)

When it happens

Trigger: Thrown at app/Services/ServerTransfer/ServerTransferMigrator.php:173 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/a282dcef616e3dbd. Report an issue: GitHub.