Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Invalid remote Gitlab url: https://*** #21

Open
andrisp opened this issue Jun 20, 2016 · 9 comments
Open

Invalid remote Gitlab url: https://*** #21

andrisp opened this issue Jun 20, 2016 · 9 comments

Comments

@andrisp
Copy link

andrisp commented Jun 20, 2016

Installed plugin from the jetbrains plugin repository.
When tried to use the "Open in Gitlab", got this exception:
gitlab_exc.txt

@bsideup
Copy link
Owner

bsideup commented Jun 20, 2016

@andrisp it will not work if you use git:// remotes. Right now only http/https is supported

@andrisp
Copy link
Author

andrisp commented Jun 20, 2016

@bsideup I'm using https://.

@bsideup
Copy link
Owner

bsideup commented Jun 20, 2016

@andrisp can you post slightly less obfuscated exception?

@andrisp
Copy link
Author

andrisp commented Jun 20, 2016

@bsideup the only thing I didnt include in the exception was the domain and the path from the URL because of the privacy reasons. As you see in the attached filed, the remote repo URL starts with https://. I was checking the source of the plugin, and have no idea why I'm getting the error, the code looks ok.

@mrh1997
Copy link

mrh1997 commented Jun 21, 2016

Same on my PC.
For quick reproducability I checked out a sample project (https://gitlab.com/tobyd/drone-boat.git) under PyCharm (2016.1; Windows) and clicked "Open on GitLab".

Then I get the following error: https://gist.github.com/mrh1997/ef1a22896205255adb84ab88b896f64f

@shurupov
Copy link

The same
The repository is private

@aledoroshenko
Copy link

Same issue. Had repo with ssh link, used git set-url to switch to https one, but no luck, it says 'wrong url'.

@gogowitsch
Copy link

gogowitsch commented Feb 15, 2019

I just ran into this with PhpStorm 2018.3.3.

The URL in first line of the following stack trace works fine when opened in a browser.

java.lang.IllegalStateException: Invalid remote Gitlab url: https://git04.quodata.de/qd_drupal_projects/qd_base_entity.git
	at ru.trylogic.idea.gitlab.integration.utils.GitlabUrlUtil.makeRepoUrlFromRemoteUrl(GitlabUrlUtil.java:36)
	at ru.trylogic.idea.gitlab.integration.actions.GitLabOpenInBrowserAction.makeUrlToOpen(GitLabOpenInBrowserAction.java:63)
	at ru.trylogic.idea.gitlab.integration.actions.RemoteSelectedAction.actionPerformed(GitLabOpenInBrowserAction.java:238)
	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:258)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:275)

@pvalsecc
Copy link

pvalsecc commented Apr 7, 2020

The issue is this line of code:


If your username is not git, you are toast. Mine is gitlab.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants