Report Generator - Unable to generate HTML Report
Closed this issue · 17 comments
Good day,
I am unable to generate an HTML Report for the Task. It Fails with the following error.
2017-09-26T08:08:06.5578098Z Generating the report...
2017-09-26T08:08:06.6359156Z (node:4928) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'name' of undefined
I can generate an MD Report but it also displays a warning.
Thank you for reporting this issue @jodachecallan Will look in to this and release an update to fix this with in few days, I'll keep this thread updated with the progress.
Hi,
Same issue for me. I've tried with all the report types, but get the same error in all cases.
Any timeline on a fix/workaround for this?
Thanks
Hi,
Same issue for me. I've tried with all the report types, but get the same error in all cases.
Any timeline on a fix/workaround for this?
Thanks
@kasunkv I'm also getting this error as well. Any idea on a timeline in order to fix this? Not being able to publish the report from the task is a big issue.
FYI... Reporting options used are below. Tried HTML and XML but both fail.
Report filename: OWASP-ZAP-Report-$(Build.BuildId)
Destination Folder: $(System.DefaultWorkingDirectory)/MyAppName
@AshleyPoole have you tried executing the scan and generating the report form the ZAP tool? just to eliminate the possibility of missing files.
Does the MD files also not generate?
The scan is running from the task, it's just the report that isn't working.
I've actually already switched to using the alerts endpoint to download the report for a particular base url myself. Maybe the VSTS task should have an option to disable the report creation, or another option to use the alerts endpoint instead?
Also coming up with this error. Has there been any progress on how to fix or get around this? Selecting html report fails the build, where xml and the MD file options don't fail the build, but the same error occurs in a way that the build agent doesn't care about
@kasunkv any update? I know you said you were busy but were going to take a look at this...
@kasunkv any update? We also have this bug. The XML & markdown reports work for our installation, but our users want the HTML reports.
Any update on this, im also getting this issue.....
Hi Guys, Really sorry for the late update. Couldn't find time to get around to work on this. But, the v2.0.5 is not released. It contains the fix for the HTML report issue and few other fixes. Check it out now and let me know of the status. Thanks for your patience.
Hi @kasunkv I am using the latest v2.0.6, I have issue generating HTML and XML report, Markdown report works fine.
Here is the error when generating HTML report:
2018-05-07T22:48:28.9636359Z Generating the report...
2018-05-07T22:48:30.0466918Z ##[error]Task Failed. Error: "Cannot read property 'host' of undefined"
Here is the error when generating XML report:
2018-05-07T20:58:46.8365970Z Generating the report...
2018-05-07T20:58:49.0396146Z (node:3604) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'host' of undefined
Please let me know if you need more info.
Thanks,
Dennis
Same issue for me. The Markdown report is working, but the XML/HTML is producing a "Cannot read property 'host' of undefined" error.
Hi Guys,
A new version (v2.0.7) is released now and the issue of Cannot read property 'host' of undefined
shroud be fixed.
@kasunkv Confirmed that with v2.0.7, the html and xml reports can be generated now. and the result is correct now. this bug can be closed.
Looks like this can be closed.