{"record":{"id":"7aa655513ade024c","repo":"coollabsio/coolify","slug":"invalid-repository-url","errorCode":null,"errorMessage":"Invalid repository URL: ","messagePattern":"Invalid repository URL: ","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Livewire/Project/New/PublicGitRepository.php","lineNumber":137,"sourceCode":"            $this->port = 80;\n            $this->publish_directory = '/dist';\n        } else {\n            $this->port = 3000;\n            $this->publish_directory = null;\n        }\n        $this->dispatch('success', 'Application settings updated!');\n    }\n\n    public function loadBranch()\n    {\n        try {\n            // Validate repository URL\n            $validator = validator(['repository_url' => $this->repository_url], [\n                'repository_url' => ['required', 'string', new ValidGitRepositoryUrl],\n            ]);\n\n            if ($validator->fails()) {\n                throw new \\RuntimeException('Invalid repository URL: '.$validator->errors()->first('repository_url'));\n            }\n\n            if (str($this->repository_url)->startsWith('git@')) {\n                $github_instance = str($this->repository_url)->after('git@')->before(':');\n                $repository = str($this->repository_url)->after(':')->before('.git');\n                $this->repository_url = 'https://'.str($github_instance).'/'.$repository;\n            }\n            if (\n                (str($this->repository_url)->startsWith('https://') ||\n                    str($this->repository_url)->startsWith('http://')) &&\n                ! str($this->repository_url)->endsWith('.git') &&\n                (! str($this->repository_url)->contains('github.com') ||\n                    ! str($this->repository_url)->contains('git.sr.ht')) &&\n                    ! str($this->repository_url)->contains('tangled')\n            ) {\n\n                $this->repository_url = $this->repository_url.'.git';\n            }","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Project/New/PublicGitRepository.php#L119-L155","documentation":"Error \"Invalid repository URL: \" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Project/New/PublicGitRepository.php:137 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"}