{"record":{"id":"3eac052f900a244d","repo":"coollabsio/coolify","slug":"transfer-to-target-failed-e-getmessage","errorCode":null,"errorMessage":"Transfer to target failed: {$e->getMessage()}","messagePattern":"Transfer to target failed: (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Services/ServerTransfer/ServerTransferMigrator.php","lineNumber":158,"sourceCode":"\n        try {\n            $response = Http::timeout(120)\n                ->acceptJson()\n                ->withToken($token)\n                ->asJson()\n                ->post($importUrl, [\n                    'bundle' => $bundle,\n                    'dry_run' => false,\n                    'preserve_uuids' => $preserveUuids,\n                    'adopt_mode' => $adoptMode,\n                    'claim' => true,\n                    'write_remote' => $writeRemote,\n                    'rebind_sentinel' => $rebindSentinel,\n                ]);\n        } catch (ConnectionException $e) {\n            throw new RuntimeException(\"Could not reach target instance at {$importUrl}: {$e->getMessage()}\", previous: $e);\n        } catch (Throwable $e) {\n            throw new RuntimeException(\"Transfer to target failed: {$e->getMessage()}\", previous: $e);\n        }\n\n        $importBody = $response->json();\n        if (! is_array($importBody)) {\n            $importBody = ['raw' => $response->body()];\n        }\n\n        if (! $response->successful()) {\n            $message = data_get($importBody, 'message')\n                ?? data_get($importBody, 'errors')\n                ?? $response->body();\n            if (is_array($message)) {\n                $message = json_encode($message);\n            }\n            throw new RuntimeException(\"Target import failed (HTTP {$response->status()}): {$message}\");\n        }\n\n        return $importBody;","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Services/ServerTransfer/ServerTransferMigrator.php#L140-L176","documentation":"Error \"Transfer to target failed: {$e->getMessage()}\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Services/ServerTransfer/ServerTransferMigrator.php:158 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}