{"record":{"id":"fed13e5be9349f5f","repo":"coollabsio/coolify","slug":"invalid-repository-data-validator-errors-fi-fed13e","errorCode":null,"errorMessage":"Invalid repository data: {$validator->errors()->first()}","messagePattern":"Invalid repository data: (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Livewire/Project/New/GitlabPrivateRepository.php","lineNumber":177,"sourceCode":"    }\n\n    public function submit()\n    {\n        try {\n            $this->authorize('create', Application::class);\n\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,","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/New/GitlabPrivateRepository.php#L159-L195","documentation":"Error \"Invalid repository data: {$validator->errors()->first()}\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/New/GitlabPrivateRepository.php:177 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"}