{"record":{"id":"f0512602ba2b985d","repo":"coollabsio/coolify","slug":"destination-not-found-f05126","errorCode":null,"errorMessage":"Destination not found.","messagePattern":"Destination not found\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Livewire/Project/New/GithubPrivateRepository.php","lineNumber":197,"sourceCode":"                'selected_repository_owner' => $this->selected_repository_owner,\n                'selected_repository_repo' => $this->selected_repository_repo,\n                'selected_branch_name' => $this->selected_branch_name,\n                'docker_compose_location' => $this->docker_compose_location,\n            ], [\n                'selected_repository_owner' => 'required|string|regex:/^[a-zA-Z0-9\\-_]+$/',\n                'selected_repository_repo' => 'required|string|regex:/^[a-zA-Z0-9\\-_\\.]+$/',\n                'selected_branch_name' => ['required', 'string', new ValidGitBranch],\n                'docker_compose_location' => ValidationPatterns::filePathRules(),\n            ]);\n\n            if ($validator->fails()) {\n                throw new \\RuntimeException('Invalid repository data: '.$validator->errors()->first());\n            }\n\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            $project = Project::ownedByCurrentTeam()->where('uuid', $this->parameters['project_uuid'])->firstOrFail();\n            $environment = $project->environments()->where('uuid', $this->parameters['environment_uuid'])->firstOrFail();\n\n            $application = new Application([\n                'name' => generate_application_name($this->selected_repository_owner.'/'.$this->selected_repository_repo, $this->selected_branch_name),\n                'repository_project_id' => $this->selected_repository_id,\n                'git_repository' => str($this->selected_repository_owner)->trim()->toString().'/'.str($this->selected_repository_repo)->trim()->toString(),\n                'git_branch' => str($this->selected_branch_name)->trim()->toString(),\n                'build_pack' => $this->build_pack,\n                'ports_exposes' => $this->port,\n                'publish_directory' => $this->publish_directory,\n                'base_directory' => $this->base_directory,\n                'environment_id' => $environment->id,\n                'destination_id' => $destination->id,\n                'destination_type' => $destination_class,","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/New/GithubPrivateRepository.php#L179-L215","documentation":"Error \"Destination not found.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/New/GithubPrivateRepository.php:197 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"}