coollabsio/coolify · error · RuntimeException

Paste a transfer bundle JSON or upload a file.

Error message

Paste a transfer bundle JSON or upload a file.

What it means

Error "Paste a transfer bundle JSON or upload a file." thrown in coollabsio/coolify.

Source

Thrown at app/Livewire/Server/TransferImport.php:73

            $contents = $this->bundleFile->get();
            if (! is_string($contents) || blank($contents)) {
                throw new \RuntimeException('Uploaded file is empty.');
            }
            $this->bundleJson = $contents;
            $this->dispatch('success', 'Bundle file loaded into the form.');
        } catch (Throwable $e) {
            handleError($e, $this);
        }
    }

    /**
     * @return array<string, mixed>
     */
    private function resolveBundle(): array
    {
        $raw = trim($this->bundleJson);
        if ($raw === '') {
            throw new \RuntimeException('Paste a transfer bundle JSON or upload a file.');
        }

        $decoded = json_decode($raw, true);
        if (! is_array($decoded)) {
            throw new \RuntimeException('Bundle is not valid JSON.');
        }

        if (data_get($decoded, 'encrypted')) {
            if (blank($this->passphrase)) {
                throw new \RuntimeException('Passphrase is required for encrypted bundles.');
            }

            return ServerTransferBundle::decryptWithPassphrase($decoded, $this->passphrase);
        }

        return $decoded;
    }

View on GitHub (pinned to 70b9acc424)

When it happens

Trigger: Thrown at app/Livewire/Server/TransferImport.php:73 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/a98cf26248689944. Report an issue: GitHub.