Exception: WPScan::Error::Download

Inherits:
HTTP
  • Object
show all
Defined in:
lib/wpscan/errors/http.rb

Overview

Used in the Updater

Instance Attribute Summary

Attributes inherited from HTTP

#response

Instance Method Summary collapse

Methods inherited from HTTP

#failure_details, #initialize

Constructor Details

This class inherits a constructor from WPScan::Error::HTTP

Instance Method Details

#to_sObject



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/wpscan/errors/http.rb', line 33

def to_s
  msg = "Unable to get #{failure_details}"

  if response.effective_url.to_s.include?('data.wpscan.org')
    cf_ray = response.headers && response.headers['CF-Ray']
    msg += "\nCloudflare Ray ID: #{cf_ray}" if cf_ray
    msg += "\nIf this issue persists, you can:\n  " \
           "- Check our status page at https://status.wpscan.com/\n  " \
           "- Contact us via https://wpscan.com/contact/ (please include the Ray ID above if any)\n  " \
           '- Or open a GitHub issue at https://github.com/wpscanteam/wpscan/issues'
  end

  msg
end