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

##[error]Task Failed. Error: "Invalid Dsn" #42

Closed NoelJK closed 5 years ago

NoelJK commented 5 years ago

On using the task with an agent installed in same machine, its showing "##[error]Task Failed. Error: "Invalid Dsn" ". The details in task were given as follows:

Zap Api URL: localhost:8080 Api key: **

kasunkv commented 5 years ago

Hi @NoelJK Are you running the build on a Private Agent that you manage? If not and if you are running the OWASP Zap on a different machine/virtual machine you need to provide an publicly accessible URL for the Zap API URL Value.

NoelJK commented 5 years ago

Hello @kasunkv I am running the task on an agent that i manage. Zap and the agent are present on the same machine.

rsinghmdp commented 5 years ago

I am facing the same issue ZAP and Agent is in same machine which i manage. image

rsinghmdp commented 5 years ago

Hi @NoelJK are you able to resolve the issue, if yes kindly provide the resolution

NoelJK commented 5 years ago

@rsinghmdp No, i am yet to find a solution to this.

rsinghmdp commented 5 years ago

Hi @kasunkv kindly help us to resolve the issue.

kasunkv commented 5 years ago

I've identified the issue that is causing this. I will be able to release a new version of the task within this week.

NoelJK commented 5 years ago

Much appreciated!

rsinghmdp commented 5 years ago

@kasunkv thanks a lot, do you have any workaround till then?

kasunkv commented 5 years ago

Not at the moment, I am releasing a new version of the task now. It should be available for download within an hour or so. Please check the version for v2.0.9. That should fix the issue.

kasunkv commented 5 years ago

The new version v2.0.9 is now published. let me know if the issue persists. Sorry for the inconvenience

rodrigocmoreira commented 5 years ago

But now it's always cleaning the Zap session, can you check that? Even if the checkbox is not checked

NoelJK commented 5 years ago

@kasunkv Task is working fine now. Thanks a lot for resolving it in such short time. :)

kasunkv commented 5 years ago

@rodrigocmoreira A new version with the fix for your issue is now released. Please check the version v2.0.10 is used in your pipeline. It should fix your issue. Please create a new issue if the problem persists. Closing this issue :)