{"record":{"id":"4e9ffb2c646e196a","repo":"coollabsio/coolify","slug":"bundle-is-not-valid-json","errorCode":null,"errorMessage":"Bundle is not valid JSON.","messagePattern":"Bundle is not valid JSON\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Livewire/Server/TransferImport.php","lineNumber":78,"sourceCode":"            $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\n    public function dryRun(ServerTransferImporter $importer): void\n    {\n        $this->ensureDevelopmentAvailability();\n        $this->runImport($importer, dryRun: true);\n    }","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Server/TransferImport.php#L60-L96","documentation":"Error \"Bundle is not valid JSON.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Server/TransferImport.php:78 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"}