Using Docker zap proxy (stable) with Python apis to automate the process. (Python 2.7). In this process, able to spider, scan and print alerts however when tried to generate report using zap.core.htmlreport() api facing bellow issue. Please guide.
Error details:
**************
Traceback (most recent call last):
File "idenity_testing/script/identityWebSite_docker.py", line 109, in <module>
html_file.write(html)
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in position 180085: ordinal not in range(128)
Python script:
***************
html = zap.core.htmlreport()
html_file= open("/home/zap/wrk/ZAPalerts.html","w")
html_file.write(html)
html_file.close()
Note: Able to generate xml report, the problem with only html report. Please suggest.