{"record":{"id":"b0f4c4a080121cff","repo":"coollabsio/coolify","slug":"destination-not-found-b0f4c4","errorCode":null,"errorMessage":"Destination not found.","messagePattern":"Destination not found\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php","lineNumber":141,"sourceCode":"        }\n    }\n\n    public function setPrivateKey($private_key_id)\n    {\n        $this->private_key_id = $private_key_id;\n        $this->current_step = 'repository';\n    }\n\n    public function submit()\n    {\n        $this->authorize('create', Application::class);\n\n        $this->validate();\n        try {\n            $destination_uuid = $this->query['destination'] ?? null;\n            $destination = find_resource_destination_for_current_team($destination_uuid);\n            if (! $destination) {\n                throw new \\Exception('Destination not found.');\n            }\n            $destination_class = $destination->getMorphClass();\n\n            $this->get_git_source();\n\n            // Note: git_repository has already been validated and transformed in get_git_source()\n            // It may now be in SSH format (git@host:repo.git) which is valid for deploy keys\n\n            $project = Project::ownedByCurrentTeam()->where('uuid', $this->parameters['project_uuid'])->firstOrFail();\n            $environment = $project->environments()->where('uuid', $this->parameters['environment_uuid'])->firstOrFail();\n            if ($this->git_source === 'other') {\n                $application_init = [\n                    'name' => generate_random_name(),\n                    'git_repository' => $this->git_repository,\n                    'git_branch' => $this->branch,\n                    'build_pack' => $this->build_pack,\n                    'ports_exposes' => $this->port,\n                    'publish_directory' => $this->publish_directory,","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php#L123-L159","documentation":"Error \"Destination not found.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php:141 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"}