{"record":{"id":"a282dcef616e3dbd","repo":"coollabsio/coolify","slug":"target-import-failed-http-response-status","errorCode":null,"errorMessage":"Target import failed (HTTP {$response->status()}): {$message}","messagePattern":"Target import failed \\(HTTP (.+?)\\): (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Services/ServerTransfer/ServerTransferMigrator.php","lineNumber":173,"sourceCode":"        } 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;\n    }\n}\n","sourceCodeStart":155,"sourceCodeEnd":179,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Services/ServerTransfer/ServerTransferMigrator.php#L155-L179","documentation":"Error \"Target import failed (HTTP {$response->status()}): {$message}\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Services/ServerTransfer/ServerTransferMigrator.php:173 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"}