-
Notifications
You must be signed in to change notification settings - Fork 62
UnhandledPromiseRejectionWarning #75
Comments
Just want to make sure, I can access AWS resources with same settings: |
We have modified the code. Could you please try again? |
root@vagrant:
npm WARN lifecycle cloud-reports@1.6.4~prepare: cannot run in wd cloud-reports@1.6.4 npm run compile && npm run copy-ejs (wd=/root/cloud-reports) audited 7699 packages in 4.607s
[15:29:44] Using gulpfile ~/cloud-reports/gulpfile.js audited 39611 packages in 7.752s
Date: 2020-03-13T15:31:17.783Z
(node:32269) UnhandledPromiseRejectionWarning: Error: Exited with code 3 |
Any updates? |
Look like having issues with PDF formating, please try with -f html for html output. |
Thanks, Dilip. Even HTML failed. However, I am able to create csv report. Is this tool looking for any basic package for pdf and HTML?
|
Hi Vineet, HTML view and both PDF view is working in MacOS.
I have executed following commands:
npm run build
npm run scan -- --profile AWS-PROFILE -m s3 -f html
npm run scan -- --profile AWS-Profile -m s3 -f pdf
both are working for me.
@tensult Support<mailto:support@tensult.com> Please try this in a ubuntu instance using https://www.vagrantup.com/
Thanks and Regards,
[signature_1238288640]<https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.tensult.com%2F&data=02%7C01%7C%7Ce263c5e0a30c4acb9d4808d794ed6fa9%7C2d5718b7ec0049d29d18feca299cda73%7C0%7C0%7C637141619826491913&sdata=ttDoLfvytwVKjgT2cPV8KH9YJBSS6WMWxhRs5g4NvAQ%3D&reserved=0>
Dilip Kumar Kola
Co-Founder & CTO
[signature_983825607]
+91-890-480-3454
From: Vineet Khanna <notifications@github.com>
Reply to: tensult/cloud-reports <reply@reply.github.com>
Date: Tuesday, 17 March 2020 at 7:15 AM
To: tensult/cloud-reports <cloud-reports@noreply.github.com>
Cc: Dilip Kola <dilip@tensult.com>, Comment <comment@noreply.github.com>
Subject: Re: [tensult/cloud-reports] UnhandledPromiseRejectionWarning (#75)
Exercise caution – External Mail.
Thanks, Dilip.
Even HTML failed. However, I am able to create csv report.
Is this tool looking for any basic package for pdf and HTML?
root@vagrant:~/cloud-reports# npm run scan -- --profile aws_infra -m s3 -f csv
***@***.*** scan /root/cloud-reports
node dist/scan.js "--profile" "aws_infra" "-m" "s3" "-f" "csv"
./scan_report_665095561748_2020-03-17-01-06-47.csv is generated
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#75 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AH4MMHYRCBTZVMZY2PH47IDRH3IZTANCNFSM4LGFYPZQ>.
|
Hi Dilip, I am running the script from vagrant based Ubuntu only. Let me try to run the script from MacOS. |
Running below cmd on Ubuntu:
root@vagrant:~/cloud-reports# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
root@vagrant:~/cloud-reports#
root@vagrant:~/cloud-reports# npm run scan -- --profile aws_infra -m s3
(node:15063) UnhandledPromiseRejectionWarning: Error: Exited with code 3
at ChildProcess.cp.once.code (/root/cloud-reports/node_modules/opn/index.js:85:13)
at Object.onceWrapper (events.js:286:20)
at ChildProcess.emit (events.js:198:13)
at ChildProcess.EventEmitter.emit (domain.js:448:20)
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 Socket.EventEmitter.emit (domain.js:448:20)
at Pipe._handle.close (net.js:607:12)
(node:15063) 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:15063) [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.
TypeError: Cannot read property 'newPage' of undefined
at createPDF (/root/cloud-reports/dist/reporters/pdf/index.js:52:36)
at process._tickCallback (internal/process/next_tick.js:68:7)
The text was updated successfully, but these errors were encountered: