Giter VIP home page Giter VIP logo

Comments (17)

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024 1

Looks like the error I am seeing on our gitlab instance is maybe due to misconfigured https. Will be great if someone not on gitlab 11 confirm that this is working for them then I can merge #59 which fixes this.

from gitlab-cli.

Sharcoux avatar Sharcoux commented on June 9, 2024 1

Youhou!
Thanks for your work! That works fine now :)

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

Fetching of project information failed. At first look I'll want you to verify your GITLAB_URL for http and https discrepancy.

from gitlab-cli.

SilentImp avatar SilentImp commented on June 9, 2024

GITLAB_URL=http://gitlab.com
it's just gitlab

$ echo $GITLAB_URL
http://gitlab.com

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

@SilentImp
Can you try with

GITLAB_URL=https://gitlab.com

note the change of https

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

@SilentImp any chance on getting this checked.

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

@SilentImp I will assume that this problem is fixed and close this. Feel free to reopen if you are still facing the issue.

from gitlab-cli.

Sharcoux avatar Sharcoux commented on June 9, 2024

I am having the exact same problem. I have GITLAB_URL=https://gitlab.com though...
It was working before, and I suddenly get this.

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

If it was working before, can you check if you are able to connect to gitlab.com through your network as expected.

from gitlab-cli.

Sharcoux avatar Sharcoux commented on June 9, 2024

Yes, I can. Other git command on gitlab repo also work as expected. Might gitlab have changed their API?

Here is the full stacktrace

/Users/xxx/.nvm/versions/node/v8.9.2/lib/node_modules/git-lab-cli/index.js:409
          var defaultBranch = project.default_branch;
                                      ^

TypeError: Cannot read property 'default_branch' of null
    at /Users/xxx/.nvm/versions/node/v8.9.2/lib/node_modules/git-lab-cli/index.js:409:39
    at /Users/xxx/.nvm/versions/node/v8.9.2/lib/node_modules/git-lab-cli/node_modules/gitlab/lib/Models/Projects.js:145:20
    at /Users/xxx/.nvm/versions/node/v8.9.2/lib/node_modules/git-lab-cli/node_modules/gitlab/lib/ApiBaseHTTP.js:86:22
    at Function._Class.wrap_response (/Users/xxx/.nvm/versions/node/v8.9.2/lib/node_modules/git-lab-cli/node_modules/slumber/lib/API.js:192:18)
    at Function.wrap_response (/Users/xxx/.nvm/versions/node/v8.9.2/lib/node_modules/git-lab-cli/node_modules/slumber/lib/API.js:4:59)
    at Request._callback (/Users/xxx/.nvm/versions/node/v8.9.2/lib/node_modules/git-lab-cli/node_modules/slumber/lib/API.js:215:26)
    at Request.self.callback (/Users/xxx/.nvm/versions/node/v8.9.2/lib/node_modules/git-lab-cli/node_modules/request/request.js:186:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/Users/xxx/.nvm/versions/node/v8.9.2/lib/node_modules/git-lab-cli/node_modules/request/request.js:1163:10)

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

Possible. I have been using this with our hosted solution with version 10.1.4-ee and works fine.
I see that gitlab.com is on version 11.0.0-rc11-ee.

Will put some time to check creating MR on gitlab.com directly and update here.

from gitlab-cli.

Sharcoux avatar Sharcoux commented on June 9, 2024

Any news?

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

I did check this last weekend. I was able to reproduce this on gitlab.com. Seems like some API has changed in gitlab 11. I checked if this is a known issue in node gitlab I'm using, but couldn't find it.
I will check this again in detail, probably have to replace node gitlab with my own http request to make this work. This might take time.

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

I checked this yesterday. Found out that main dependent package I'm using node-gitlab is not maintained by original author anymore. He has given away the npm package to some other user. I checked the new node-gitlab. Will need some changes to incorporate that. I did try integrating this new node gitlab yesterday and it did make it work for gitlab.com repo.
Unfortunately it's not working for my organisation gitlab instance repo. I'm getting https connection error. I'm looking into this more. You will have to wait. I can give you half baked branch if you are interested in installing from that.
PS: This comment was made from phone. Will add references later.

from gitlab-cli.

Sharcoux avatar Sharcoux commented on June 9, 2024

That's a shame...
I would be glad to get your half baked branch because your lib definitely help a lot when making merge requests, but if it's to much trouble, I can wait.

from gitlab-cli.

qkdreyer avatar qkdreyer commented on June 9, 2024

Any updates ?

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

Thanks @qkdreyer . I see you have taken matter into your hands and have created the MR. Looking into it right now. I had created one branch for gitlab 11, I will share it here anyway.

If you want to use the branch, install it like following

npm i -g https://github.com/vishwanatharondekar/gitlab-cli.git#gitlab-11

cc: @Sharcoux

from gitlab-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.