{"record":{"id":"61a434d10b3220b8","repo":"coollabsio/coolify","slug":"destination-not-found-61a434","errorCode":null,"errorMessage":"Destination not found.","messagePattern":"Destination not found\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Livewire/Project/New/GitlabPrivateRepository.php","lineNumber":183,"sourceCode":"\n            $validator = validator([\n                'selected_repository_path' => $this->selected_repository_path,\n                'selected_branch_name' => $this->selected_branch_name,\n                'docker_compose_location' => $this->docker_compose_location,\n            ], [\n                'selected_repository_path' => 'required|string',\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_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            $gitlab_app = $this->getGitlabApp();\n\n            $application = Application::create([\n                'name' => generate_application_name($this->selected_repository_path, $this->selected_branch_name),\n                'repository_project_id' => $this->selected_project_id,\n                'git_repository' => $this->selected_repository_path,\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,","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/New/GitlabPrivateRepository.php#L165-L201","documentation":"Error \"Destination not found.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/New/GitlabPrivateRepository.php:183 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"}