coollabsio/coolify · error · RuntimeException

Invalid repository URL: {$validator->errors()->first('reposi

Error message

Invalid repository URL: {$validator->errors()->first('repository_url')}

What it means

Error "Invalid repository URL: {$validator->errors()->first('repository_url')}" thrown in coollabsio/coolify.

Source

Thrown at app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php:216

            return redirect()->route('project.application.configuration', [
                'application_uuid' => $application->uuid,
                'environment_uuid' => $environment->uuid,
                'project_uuid' => $project->uuid,
            ]);
        } catch (\Throwable $e) {
            return handleError($e, $this);
        }
    }

    private function get_git_source()
    {
        // Validate repository URL before parsing
        $validator = validator(['repository_url' => $this->repository_url], [
            'repository_url' => ['required', 'string', new ValidGitRepositoryUrl],
        ]);

        if ($validator->fails()) {
            throw new \RuntimeException('Invalid repository URL: '.$validator->errors()->first('repository_url'));
        }

        $this->repository_url_parsed = Url::fromString($this->repository_url);
        $this->git_host = $this->repository_url_parsed->getHost();
        $this->git_repository = $this->repository_url_parsed->getSegment(1).'/'.$this->repository_url_parsed->getSegment(2);

        if ($this->git_host === 'github.com') {
            $this->git_source = GithubApp::where('name', 'Public GitHub')->first();

            return;
        }
        if (str($this->repository_url)->startsWith('http')) {
            $this->git_host = $this->repository_url_parsed->getHost();
            $this->git_repository = $this->repository_url_parsed->getSegment(1).'/'.$this->repository_url_parsed->getSegment(2);
            // Convert to SSH format for deploy key usage
            $this->git_repository = Str::finish("git@$this->git_host:$this->git_repository", '.git');
        } else {
            // If it's already in SSH format, just use it as-is

View on GitHub (pinned to 70b9acc424)

When it happens

Trigger: Thrown at app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php:216 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of coollabsio/coolify@70b9acc424 (2026-08-17). Data as JSON: /api/errors/eee71941a43d95e5. Report an issue: GitHub.