Hi morphers,
I’ve written a little scraper to get information off the front end of policies on They Vote For You https://morph.io/equivalentideas/theyvoteforyou_policy_positions .
When Mechanize goes to get a page for the second time, it errors with:
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/openssl/ssl.rb:232:in `post_connection_check': hostname "theyvoteforyou.org.au" does not match the server certificate (OpenSSL::SSL::SSLError)
The They Vote For You certificate has the common name ‘www.theyvoteforyou.org.au’.
They Vote For You always redirects to https.theyvoteforyou.org.au, so shouldn’t the cert not have the www? Is that a problem with the cert that needs to be corrected, or should I try and make the request without ssl? Any other more informed ideas would be very helpful
Luke