Re: [zaproxy-users] ZAP API Scan stuck

Skip to first unread message


Jun 27, 2022, 3:47:33 AMJun 27
Please dont delete posts you make to this group.
If you work out what went wrong then just reply explaining what the problem was - that will help other people who hit the same thing...



On Fri, Jun 24, 2022 at 6:26 PM Rohit Kumar <> wrote:
I made a wrapper on top of zap api scan, we're running below command interanlly, can you tell me why it's not moving ahead?

 /usr/bin/python3 /zap/ -t -f openapi -P 8070 -d -J scanreport_v2.json -T 2 -S --hook=/zap/

import subprocess
import os
import logging

def zap_pre_shutdown(zap):
verbose = os.getenv('LOGS_VERBOSE')

if verbose:"Zap pre shutdown: Send request to: http://localhost:8070/JSON/core/view/alerts")"Zap pre shutdown. Send request to: http://localhost:8070/JSON/core/view/messages")['curl', '-k', '-s', 'http://localhost:8070/JSON/core/view/alerts', '--output', '/zap/wrk/scanreport.json'])['curl', '-k', '-s', 'http://localhost:8070/JSON/core/view/messages', '--output', '/zap/wrk/messages_report.json'])
return zap

You received this message because you are subscribed to the Google Groups "OWASP ZAP User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

OWASP ZAP Project leader
Reply all
Reply to author
0 new messages