Comments (17)
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.
Youhou!
Thanks for your work! That works fine now :)
from gitlab-cli.
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.
GITLAB_URL=http://gitlab.com
it's just gitlab
$ echo $GITLAB_URL
http://gitlab.com
from gitlab-cli.
@SilentImp
Can you try with
GITLAB_URL=https://gitlab.com
note the change of https
from gitlab-cli.
@SilentImp any chance on getting this checked.
from gitlab-cli.
@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.
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.
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.
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.
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.
Any news?
from gitlab-cli.
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.
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.
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.
Any updates ?
from gitlab-cli.
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)
- Cannot read property 'green' of undefined HOT 3
- Latest 2.0.10 version merge request broked HOT 2
- Response code 401 (Unauthorized) HOT 7
- How do I need to set the project name HOT 5
- Merge request not opening on correct repository. HOT 2
- Response code 401 (Unauthorized) HOT 6
- `lab mr` command creates merge request with wrong project HOT 1
- Print URL after merge-request HOT 1
- Crash when using with pipelines HOT 5
- option -V always gives 1.0.2 HOT 5
- Add support for adding approvers HOT 1
- Automatically merge if CI passes HOT 7
- Why succed when baseBranch is not defined? HOT 8
- Release support HOT 2
- Invocation after installation fails HOT 4
- Error: Cannot read property 'green' of null HOT 12
- Could I input Description without opening an editor? HOT 5
- `getURLOfRemote` return a remote URL with newline character after the project name HOT 1
- 401 - {"error":"You need to sign in or sign up before continuing."} HOT 2
- create mr with cli failed: 404 - {"status":"404","error":"Not Found"} HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab-cli.