{"record":{"id":"741a75c7c55da585","repo":"coollabsio/coolify","slug":"destination-not-found-741a75","errorCode":null,"errorMessage":"Destination not found.","messagePattern":"Destination not found\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"app/Livewire/Project/New/PublicGitRepository.php","lineNumber":295,"sourceCode":"                    throw new \\RuntimeException('Invalid repository URL: '.$validator->errors()->first('git_repository'));\n                }\n            }\n\n            $branchValidator = validator(['git_branch' => $this->git_branch], [\n                'git_branch' => ['required', 'string', new ValidGitBranch],\n            ]);\n\n            if ($branchValidator->fails()) {\n                throw new \\RuntimeException('Invalid branch: '.$branchValidator->errors()->first('git_branch'));\n            }\n\n            $destination_uuid = $this->query['destination'] ?? null;\n            $project_uuid = $this->parameters['project_uuid'];\n            $environment_uuid = $this->parameters['environment_uuid'];\n\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', $project_uuid)->firstOrFail();\n            $environment = $project->environments()->where('uuid', $environment_uuid)->firstOrFail();\n\n            if ($this->git_source === 'other') {\n                $application_init = [\n                    'name' => generate_random_name(),\n                    'git_repository' => $this->git_repository,\n                    'git_branch' => $this->git_branch,\n                    'ports_exposes' => $this->port,\n                    'publish_directory' => $this->publish_directory,\n                    'environment_id' => $environment->id,\n                    'destination_id' => $destination->id,\n                    'destination_type' => $destination_class,\n                    'build_pack' => $this->build_pack,\n                    'base_directory' => $this->base_directory,","sourceCodeStart":277,"sourceCodeEnd":313,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/New/PublicGitRepository.php#L277-L313","documentation":"Error \"Destination not found.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/New/PublicGitRepository.php:295 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"}