pfefferf / ui5-nwabap-deployer

UI5 Deployer for SAP NetWeaver ABAP
Apache License 2.0
55 stars 18 forks source link

Error in AdtClient.js library #24

Closed maxx1e closed 4 years ago

maxx1e commented 4 years ago

Last update brought the following issues while executing:

info builder:builder Building project Z_CREATE_INC not including dependencies...
info builder:builder πŸ›    (1/1) Building project Z_CREATE_INC
info builder:builder application Z_CREATE_INC πŸ”¨ (1/9) Running task escapeNonAsciiCharacters...
info builder:builder application Z_CREATE_INC πŸ”¨ (2/9) Running task replaceCopyright...
info builder:builder application Z_CREATE_INC πŸ”¨ (3/9) Running task replaceVersion...
info builder:builder application Z_CREATE_INC πŸ”¨ (4/9) Running task generateFlexChangesBundle...
info builder:builder application Z_CREATE_INC πŸ”¨ (5/9) Running task generateComponentPreload...
info builder:builder application Z_CREATE_INC πŸ”¨ (6/9) Running task createDebugFiles...
info builder:builder application Z_CREATE_INC πŸ”¨ (7/9) Running task uglify...
info builder:builder application Z_CREATE_INC πŸ”¨ (8/9) Running task generateVersionInfo...
info builder:builder application Z_CREATE_INC πŸ”¨ (9/9) Running task ui5-task-nwabap-deployer...
(node:386) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'data' of undefined-task-nwabap-deployer...
    at AdtClient.sendRequest (/usr/node/home/node_modules/ui5-nwabap-deployer-core/lib/AdtClient.js:186:103)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:386) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 44)
(node:386) [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.
pfefferf commented 4 years ago

The error occurred because in case no connection can be established to the backend (ECONNREFUSED) the error object has no response object which is accessed in the error handler. I fixed that in ui5-nwabap-uploader-core@1.0.8. Please can you check it.

maxx1e commented 4 years ago

thnx, all is good!