Error parsing respository URLs
See original GitHub issueBug 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:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed on v0.10.3
@wldcordeiro I’m tried using a
package.json
as above and everything worked as wellWhich 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!