-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not return scan object. "This returns a Scan object" #284
Comments
Hi @orcuntagtekin, In your example:
Are you experiencing If Either way, thanks for submitting the issue and bringing your issue to light. |
scan = site.scan(nsc) executes and scripts waits, the next thing is |
@orcuntagtekin gotcha, that "makes sense". That happens from time to time depending on the scan parameters, and some other variables. Once we fix this ticket, #269, this should stop happening, and would let you adjust the timeout. We have some internal code that we use as a workaround, which might help in the meantime. I can copy/paste it into the issue to show how we use it, and that might give you an idea of how we deal with the same issue. But to be clear, there is technically nothing wrong with the behavior you reported. The Nexpose API did not response back within the default 60 seconds after issuing the Let me know if you want to see our rescue behavior that we have in-place for our internally testing/automation. Also, I might just add a |
Try upgrade to >7.0.0 and editing the timeout. Feel free to comment on this issue, or reopen a new one if this is still happening after upgrading and setting a custom timeout. |
When new scan started
scan = site.scan(nsc)
Expected Behavior
puts scan
should return a response
Current Behavior
However it waits until discovery scan finishes and returns site locked or
NexposeAPI: Action failed: Nexpose did not respond within 60 seconds. (Nexpose::APIError)
Possible Solution
Need to find out the cause so that scan status can be tracked
Steps to Reproduce (for bugs)
site = Nexpose::Site.load(nsc, siteId)
puts site
scan = site.scan(nsc)
or
scan = nsc.scan_site(siteId)
Context
We are implementing a integration and vulnerability reporting and this is vital.
Your Environment
Ruby Gem 6 and 5 produce the same result on a single tenant this issue did not happen on the multi tenant
The text was updated successfully, but these errors were encountered: