Error: URL Parsing Failed {"subject_url":"[email protected]:...\n"}

Open
#1,434 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
git, github, javascript
Domain
ci-cd, cli, devtools

Research direction

Start by reproducing cml runner launch --driver=github with the SSH remote shown in .git/config, then trace the URL handling used by the cml runner launch entry point. Done means SSH-style GitHub remotes no longer produce the URL parsing error, while the existing HTTPS case continues to work.

Written by the indexing model from the issue text.

Description

I've solved this already.
I'm posting as a solution and also a problem, as its failure is not that clear

Problem

When I run

cml runner launch \
  --token="..." \
  --labels="cml-gpu" \
  --idle-timeout="1h" --driver=github

I get

error: URL parsing failed. {"subject_url":"[email protected]:FR-DC/FRDC-ML.git\n"}

Solution

The problem is that CML doesn't recognize the SSH URLs (starts with git@), instead only works with HTTPS URLs (starts with https).

To fix this, edit .git/config

For example:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = [email protected]:FR-DC/FRDC-ML.git

Change url = ... to the HTTPS variant

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = https://github.com/FR-DC/FRDC-ML.git

Replicating

This usually happens when you clone using SSH. It happened to me as I configured the gh-cli to prefer SSH, and can be a silent failure for many

gh repo clone OWNER/REPO
git clone [email protected]:OWNER/REPO.git
Dominant language
JavaScript
Stars
4.2k
Forks
345
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from iterative/cml

All issues in iterative/cml

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.