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

Error when click in "Build this Application" #12

Open
viniciussilverio opened this issue Jul 17, 2019 · 2 comments
Open

Error when click in "Build this Application" #12

viniciussilverio opened this issue Jul 17, 2019 · 2 comments
Assignees

Comments

@viniciussilverio
Copy link

I'm having an error in the Node app, when click in "Build this application button".
Config:

  • CentOS 7
  • Virtual Box VM
  • 2GB RAM
  • 30GB HD
  • MID server running in the same server

Error:
image

Error text:
Unhandled rejection TypeError: Cannot read property 'match' of null
at CICD.module.exports (/home/vjbs/int-cicd/lib/modules/project-setup.js:471:36)
at Promise.try.then (/home/vjbs/int-cicd/lib/eb/run-module.js:75:34)
at tryCatcher (/home/vjbs/int-cicd/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/vjbs/int-cicd/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/home/vjbs/int-cicd/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromiseCtx (/home/vjbs/int-cicd/node_modules/bluebird/js/release/promise.js:611:10)
at _drainQueueStep (/home/vjbs/int-cicd/node_modules/bluebird/js/release/async.js:142:12)
at _drainQueue (/home/vjbs/int-cicd/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/home/vjbs/int-cicd/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/vjbs/int-cicd/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)

@bmoers
Copy link
Owner

bmoers commented Jul 18, 2019

can you please share the payload from sent from ServiceNow (you find it in the logs) to the CICD server?

The payload creation in ServiceNow is here
https://github.com/bmoers/sn-cicd-integration/blob/master/script_include/CiCdRun.js#L195

The convert of the ServiceNow payload to the CICD options is here
https://github.com/bmoers/sn-cicd-example-v3/blob/master/cicd.js#L324

If you uncomment line 334 & 335 you can see the converted options
https://github.com/bmoers/sn-cicd-example-v3/blob/master/cicd.js#L344

@bmoers bmoers self-assigned this Jul 18, 2019
@bmoers
Copy link
Owner

bmoers commented Jul 19, 2019

@viniciussilverio I'm not able to reproduce. Please uncomment line 273, 334 & 335 in /cicd.js and send results.

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

2 participants