Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help with config.json #14

Open
jwrl7 opened this issue Dec 20, 2018 · 3 comments
Open

help with config.json #14

jwrl7 opened this issue Dec 20, 2018 · 3 comments

Comments

@jwrl7
Copy link

jwrl7 commented Dec 20, 2018

Im looking for a bit of guidance for writing a config.json

Im currently receiving the following error when navigating to the local web page.

nvidia@tegra-ubuntu:~/gitlab-dash/node_modules/gitlab-ci-dashboard/bin$ ./gitlab-ci-dashboard --config ../config/dashboard_config.json The dashboard is now available at http://localhost:8081/?standalone=true (node:20910) UnhandledPromiseRejectionWarning: Error: Exited with code 3 at ChildProcess.cp.once.code (/home/nvidia/gitlab-dash/node_modules/opn/index.js:84:13) at Object.onceWrapper (events.js:273:13) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:961:16) at Socket.stream.socket.on (internal/child_process.js:380:11) at Socket.emit (events.js:182:13) at Pipe._handle.close (net.js:599:12) (node:20910) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:20910) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

My config looks something like this:

{
"dashboard": {
    "config": {
      "gitlab": "gitlab.com",
      "token": "blablabla",
      "gitlabciProtocol": "ssh", # i also tried https
      "hideSuccessCards": false,
      "hideVersion": false,
      "interval": 60,
      "apiVersion": 4
    },
    "projects": [
      {
        "description": "React Native render for draft.js model",
        "namespace": "myproject_group", #could you clarify what is included in the namespace
        "project": "repo_name", #is this supposed be the project number id?
        "branch": "master"
      }
    ]
  }
}

Thanks

@juanje
Copy link

juanje commented Dec 23, 2019

Same here.
I tried different combinations for the namespace and the project but nothing. I get the same error.
Could you give some help with this? Maybe an example from the output from the API for projects or something.

Thanks.

@Markus-St
Copy link

I am getting the same error. Also tried different combinations of namespace and project.

@devtech0101
Copy link

same error, any resolution for this issue

(node:18624) UnhandledPromiseRejectionWarning: Error: Exited with code 3 at ChildProcess.cp.once.code (/usr/lib/node_modules/gitlab-ci-dashboard/node_modules/opn/index.js:84:13) at Object.onceWrapper (events.js:286:20) at ChildProcess.emit (events.js:198:13) at maybeClose (internal/child_process.js:982:16) at Socket.stream.socket.on (internal/child_process.js:389:11) at Socket.emit (events.js:198:13) at Pipe._handle.close (net.js:607:12) (node:18624) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:18624) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

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

No branches or pull requests

4 participants