You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is my code:
scans = nsc.past_scans
scans.each do |scan|
puts "Site ID: " << scan.site_id.to_s
puts "Start Time" << scan.start_time.to_s
puts "*************************************"
end
I dug into the error:
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/lib/nexpose/a
jax.rb:170:in request': NexposeAPI: GET request to /ajax/user_pref_set.txml?nam e=global-completed-scans.rows&value= failed. request body: (Nexpose::APIError) from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/ lib/nexpose/ajax.rb:34:inget'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/
lib/nexpose/ajax.rb:267:in set_rows' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/ lib/nexpose/ajax.rb:225:inensure in preserving_preference'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/
lib/nexpose/ajax.rb:225:in preserving_preference' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/ lib/nexpose/scan.rb:374:inpast_scans'
from connect2.rb:398:in `
'
By adding code into Ajax.rb, here is the-
request: #Net::HTTP::Get:0x2b51b00
and the response: #Net::HTTPInternalServerError:0x27cf468
I haven't checked if I can call the old xml api with fiddler yet, but I might once I commit to waking up.
Thanks for all your help!
-Bryan
The text was updated successfully, but these errors were encountered:
Here is my code:
scans = nsc.past_scans
scans.each do |scan|
puts "Site ID: " << scan.site_id.to_s
puts "Start Time" << scan.start_time.to_s
puts "*************************************"
end
I dug into the error:
'C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/lib/nexpose/a
jax.rb:170:in
request': NexposeAPI: GET request to /ajax/user_pref_set.txml?nam e=global-completed-scans.rows&value= failed. request body: (Nexpose::APIError) from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/ lib/nexpose/ajax.rb:34:in
get'from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/
lib/nexpose/ajax.rb:267:in
set_rows' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/ lib/nexpose/ajax.rb:225:in
ensure in preserving_preference'from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/
lib/nexpose/ajax.rb:225:in
preserving_preference' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/nexpose-3.3.1/ lib/nexpose/scan.rb:374:in
past_scans'from connect2.rb:398:in `
By adding code into Ajax.rb, here is the-
request: #Net::HTTP::Get:0x2b51b00
and the response: #Net::HTTPInternalServerError:0x27cf468
I haven't checked if I can call the old xml api with fiddler yet, but I might once I commit to waking up.
Thanks for all your help!
-Bryan
The text was updated successfully, but these errors were encountered: