Mechanize返回`connect_nonblock':SSL_connect返回= 1 errno = 0 state = SSLv3

时间:2017-01-10 00:46:08

标签: ruby ssl web-scraping mechanize mechanize-ruby

我正在尝试抓一个Crunchbase页面但是我收到了这个错误:

Field1

以下是代码:

object Field1 {
    implicit val reader = (
        (__ \ "field1").read[String] and
        (__).read[Field2]
    ) (Field1.apply _)
}

object Field2 {
    implicit val reader = (
        splitter((__ \ "field2").read[String], (__ \ "num2"))
    ) // Obviously incorrect syntax + type mismatch, but this is roughly what I'm trying to accomplish.
}

我尝试过这两种解决方案:

Ruby Mechanize https error Mechanize getting "Errno::ECONNRESET: Connection reset by peer - SSL_connect"

但仍然存在相同的错误。

请帮助,谢谢!

1 个答案:

答案 0 :(得分:0)

尝试以下

In time   Out time
1. 6AM-   2PM 
2. 2PM-   10PM 
3. 10PM-  6AM