kasunkv / owasp-zap-vsts-task

Visual Studio Team Services build/release task for running OWASP ZAP automated security tests
MIT License
30 stars 11 forks source link

Task Failed. Error: "A scan failed to complete." #31

Open shashipramod opened 5 years ago

shashipramod commented 5 years ago

2019-02-20T18:02:41.8626486Z ##[section]Starting: OWASP ZAP Scan 2019-02-20T18:02:41.8648750Z ============================================================================== 2019-02-20T18:02:41.8649138Z Task : OWASP Zed Attack Proxy Scan 2019-02-20T18:02:41.8649423Z Description : Visual Studio Team Services build/release task for running OWASP ZAP automated security tests 2019-02-20T18:02:41.8649733Z Version : 2.0.7 2019-02-20T18:02:41.8649956Z Author : Kasun Kodagoda 2019-02-20T18:02:41.8650175Z Help : More Information 2019-02-20T18:02:41.8650401Z ============================================================================== 2019-02-20T18:02:44.1147352Z ##[error]Task Failed. Error: "A scan failed to complete." 2019-02-20T18:02:44.1179693Z ##[section]Finishing: OWASP ZAP Scan

Jaffacakes82 commented 5 years ago

I'm getting the same error.

@kasunkv Is there a task error log we can investigate?

My build agent is the same server as where the OWASP ZAP application is installed. I'm also running OWASP ZAP in daemon mode on port 8080.

As the build agent is on the same server, the API URL on the task in the release definition is http://localhost:8080.

thc202 commented 5 years ago

If it's a problem in ZAP its log should contain more details (file zap.log in ZAP home, https://github.com/zaproxy/zaproxy/wiki/FAQconfig ).

shehir12 commented 4 years ago

Same error

shehir12 commented 4 years ago

2019-09-26T12:36:27.3649628Z ##[section]Starting: OwaspZapScan 2019-09-26T12:36:27.3654039Z ============================================================================== 2019-09-26T12:36:27.3654170Z Task : OWASP Zed Attack Proxy Scan 2019-09-26T12:36:27.3654253Z Description : Visual Studio Team Services build/release task for running OWASP ZAP automated security tests 2019-09-26T12:36:27.3654626Z Version : 2.0.10 2019-09-26T12:36:27.3654698Z Author : Kasun Kodagoda 2019-09-26T12:36:27.3654790Z Help : More Information 2019-09-26T12:36:27.3654879Z ============================================================================== 2019-09-26T12:36:27.8743226Z ##[error]Task Failed. Error: "A scan failed to complete." 2019-09-26T12:36:28.4402511Z ##[section]Finishing: OwaspZapScan