The example throws different exceptions.
1.)
Steps to reproduce:
- start nodejs example
- choose 'start a process'
Error message:
camunda-bpm-examples\sdk-js\nodejs\index.js:37
throw err;
^
Error: Internal Server Error
at Request.callback (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:792:17)
at IncomingMessage.<anonymous> (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:990:12)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:913:12)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
2.)
Steps to reproduce:
- start nodejs example
- choose 'List process instances'
Error message:
camunda-bpm-examples\sdk-js\nodejs\index.js:171
instances.items.forEach(function (instance) {
^
TypeError: Cannot read property 'forEach' of undefined
at E:\Git\camunda-bpm-examples\sdk-js\nodejs\index.js:171:20
at E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\lib\api-client\http-client.js:68:5
at Request.callback (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:785:12)
at IncomingMessage.<anonymous> (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:990:12)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:913:12)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
3.)
Steps to reproduce:
- start nodejs example
- choose 'List tasks by filter' -> 'My Tasks' or 'My Group Tasks'
Error Message:
camunda-bpm-examples\sdk-js\nodejs\index.js:37 throw err; ^ Error: Unable to invoke method 'taskAssignee' on class 'org.camunda.bpm.engine.impl.TaskQueryImpl' at Request.callback (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:792:17) at IncomingMessage.<anonymous> (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:990:12) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:913:12) at nextTickCallbackWith2Args (node.js:442:9) at process._tickCallback (node.js:356:17)