{"record":{"id":"a98cf26248689944","repo":"coollabsio/coolify","slug":"paste-a-transfer-bundle-json-or-upload-a-file","errorCode":null,"errorMessage":"Paste a transfer bundle JSON or upload a file.","messagePattern":"Paste a transfer bundle JSON or upload a file\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Livewire/Server/TransferImport.php","lineNumber":73,"sourceCode":"            $contents = $this->bundleFile->get();\n            if (! is_string($contents) || blank($contents)) {\n                throw new \\RuntimeException('Uploaded file is empty.');\n            }\n            $this->bundleJson = $contents;\n            $this->dispatch('success', 'Bundle file loaded into the form.');\n        } catch (Throwable $e) {\n            handleError($e, $this);\n        }\n    }\n\n    /**\n     * @return array<string, mixed>\n     */\n    private function resolveBundle(): array\n    {\n        $raw = trim($this->bundleJson);\n        if ($raw === '') {\n            throw new \\RuntimeException('Paste a transfer bundle JSON or upload a file.');\n        }\n\n        $decoded = json_decode($raw, true);\n        if (! is_array($decoded)) {\n            throw new \\RuntimeException('Bundle is not valid JSON.');\n        }\n\n        if (data_get($decoded, 'encrypted')) {\n            if (blank($this->passphrase)) {\n                throw new \\RuntimeException('Passphrase is required for encrypted bundles.');\n            }\n\n            return ServerTransferBundle::decryptWithPassphrase($decoded, $this->passphrase);\n        }\n\n        return $decoded;\n    }\n","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Server/TransferImport.php#L55-L91","documentation":"Error \"Paste a transfer bundle JSON or upload a file.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Server/TransferImport.php:73 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"}