-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cannot connect to custom gitlab server with different port #50
Comments
Can I give me a test address and a user? |
give me? I test on your server? Ok, you can send to me by mail or message. |
I'm trying to clone the source code and debug it. I attemp to list the projects. |
我写错了 。 如果你有测试账号, 可以给我一个, 我测试一下。 |
呃,我编英语编的好累。。我发现其实连接是成功的,就是 LoadProjects 时,第21个异常。 |
问题我已经找到了,但是不知道怎么修复
在header中丢失了端口。 |
我检查过 gitlab 的 external_url 是正确的。 |
实在找不到解决方案,无奈之下,我修改了 NGitLabPlus 库,NGitLab.Impl.HttpRequestor.Enumerable.Enumerator 类, private int port;
public Enumerator(string apiToken, Uri startUrl, ApiVersion _ApiVersion)
{
this.apiToken = apiToken;
nextUrlToLoad = startUrl;
_apiVersion = _ApiVersion;
port = nextUrlToLoad.Port;
}
public bool MoveNext()
{
if (buffer.Count == 0)
{
if (nextUrlToLoad == null)
return false;
if (nextUrlToLoad.Port != port) // 修正端口
{
var ub = new UriBuilder(nextUrlToLoad);
ub.Port = port;
nextUrlToLoad = ub.Uri;
}
希望能有其它解决方案。 |
修改之后解决了吗? |
是的,这样修改替换后我可以使用了。 |
NGitLabPlus 我已经提交修改 ,我弄完后发布个版本。 你测试一下,如果没问题就发新版 |
已经测试,没有问题。 |
Installed product versions
Description
I can not connect to my gitlab server.
our https port is 7443 and ssh port is 7022.
Steps to recreate
install the plugin

Connect to GitLab


then I got the error:

I got the error:

Current behavior
Expected behavior
how can i connect?
The text was updated successfully, but these errors were encountered: