question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error parsing respository URLs

See original GitHub issue

Bug Report

Describe the bug

Repo URL failure?

Add a repository to your package.json

 "repository": {
    "type": "git",
    "url": "https://gitlab.com/group/repo"
  },
$ docz dev
✖  fatal     Failed to process your server: TypeError: Cannot read property 'replace' of undefined
    at getRepoEditUrl (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/dist/index.js:1:7669)
    at new Entries (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/dist/index.js:1:8668)
    at state (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/dist/index.js:1:9528)
    at Object.dev (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/dist/index.js:1:24679)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)
error Command failed with exit code 1.

Expected behavior

Expected dev server to start without error

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pedronauckcommented, Aug 16, 2018

Fixed on v0.10.3

0reactions
pedronauckcommented, Aug 16, 2018

@wldcordeiro I’m tried using a package.json as above and everything worked as well

{
  repository: {
    type: "git",
    url: "git@gitlab.com:some/repo"
  }
}

Which version of node you’re using? We are using get-pkg-repo to parse repository info from package.json, maybe can be some error from there!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem parsing repo URLs with authentication credentials
Strip the authentication credentials before parsing the URL with java.net.URL . This would be no change to the CLI syntax currently; instead, ...
Read more >
"Error parsing URL" when cloning repository using GIT LFS
While cloning the repository partially works, I get the following error: Error parsing URL "git@bitbucket.org:companyname/repository-name.git/ ...
Read more >
Error parsing config: Error parsing "baseurl" - Oracle Linux
I need to install a command via a repository, precisely yum --enablerepo=packages-microsoft-com-prod install mdatp , but I get errors like:
Read more >
Error parsing "baseurl = 'file///media/RHEL-6.9 Server.x86_64 ...
Yum returns 'InstallMedia': Error parsing config: Error parsing "baseurl = 'file///media/RHEL-6.9 Server. x86_64'": URL must be http, ftp, file ...
Read more >
Cannot parse the specified url " + url + " - Opster
A detailed guide on how to resolve errors related to "cannot parse the specified url " + url + ""
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found