csp icon indicating copy to clipboard operation
csp copied to clipboard

Error while running the tool (Add timeout flag)

Open securITymania opened this issue 6 years ago • 1 comments

Can you explain why I am getting this error

could not get CSP: could not send request: Get https://api.stage2du21.stage.paypal.com: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

securITymania avatar Nov 06 '19 07:11 securITymania

Hi @securITymania,

Thank you for submitting an issue ticket. If you navigate to https://api.stage2du21.stage.paypal.com, you may notice how the page takes a very long time to load. csp has a timeout parameter set (#L86) that will return that error whenever a page takes too long to load. This is to prevent the tool from hanging and waiting for the page to respond. You can alter the timeout parameter on #L86 if you want to include pages that take longer to load.

I will look into possibly adding a dedicated timeout flag to csp that would allow you to alter the timeout parameter from the command line.

EdOverflow avatar Nov 06 '19 11:11 EdOverflow