ooni / wcthcheck

Helper scripts to compare old and new web connectivity test helpers.
https://ooni.org
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

legacyth: timeout with www.aiadmk.website #1

Open bassosimone opened 3 years ago

bassosimone commented 3 years ago
> ./oohelper -debug -target https://www.aiadmk.website/ -server https://wcth.ooni.io/
2021/07/08 20:00:24 debug resolve www.aiadmk.website...
2021/07/08 20:00:24 debug resolve www.aiadmk.website... [208.109.9.99] in 1.379959ms
2021/07/08 20:00:24 debug out: {"http_request":"https://www.aiadmk.website/","http_request_headers":{"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Accept-Language":["en-US;q=0.8,en;q=0.5"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"]},"tcp_connect":["208.109.9.99:443"]}
2021/07/08 20:00:24 debug > POST https://wcth.ooni.io/
2021/07/08 20:00:24 debug > Host: wcth.ooni.io     
2021/07/08 20:00:24 debug > User-Agent: oohelper/3.11.0-alpha ooniprobe-engine/3.11.0-alpha
2021/07/08 20:00:24 debug > Content-Type: application/json
2021/07/08 20:00:24 debug >                        
2021/07/08 20:00:24 debug resolve wcth.ooni.io...  
2021/07/08 20:00:24 debug dial 8.8.8.8:853/tcp...  
2021/07/08 20:00:24 debug dial 8.8.8.8:853/tcp... ok in 21.502959ms
2021/07/08 20:00:24 debug tls {sni=8.8.8.8 next=[dot]}...
2021/07/08 20:00:24 debug tls {sni=8.8.8.8 next=[dot]}... ok in 39.931458ms {next= cipher=TLS_AES_128_GCM_SHA256 v=TLSv1.3}
2021/07/08 20:00:25 debug dial 8.8.8.8:853/tcp...  
2021/07/08 20:00:25 debug dial 8.8.8.8:853/tcp... ok in 23.577792ms
2021/07/08 20:00:25 debug tls {sni=8.8.8.8 next=[dot]}...
2021/07/08 20:00:25 debug tls {sni=8.8.8.8 next=[dot]}... ok in 41.872584ms {next= cipher=TLS_AES_128_GCM_SHA256 v=TLSv1.3}
2021/07/08 20:00:25 debug resolve wcth.ooni.io... [37.218.245.117] in 187.619875ms
2021/07/08 20:00:25 debug dial 37.218.245.117:443/tcp...
2021/07/08 20:00:25 debug dial 37.218.245.117:443/tcp... ok in 38.986667ms
2021/07/08 20:00:25 debug tls {sni=wcth.ooni.io next=[h2 http/1.1]}...
2021/07/08 20:00:25 debug tls {sni=wcth.ooni.io next=[h2 http/1.1]}... ok in 82.182833ms {next=http/1.1 cipher=TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 v=TLSv1.2}
2021/07/08 20:01:25 debug < 504                    
2021/07/08 20:01:25 debug < Keep-Alive: timeout=120
2021/07/08 20:01:25 debug < Server: nginx          
2021/07/08 20:01:25 debug < Date: Thu, 08 Jul 2021 18:01:25 GMT
2021/07/08 20:01:25 debug < Content-Type: text/html
2021/07/08 20:01:25 debug < Content-Length: 160    
2021/07/08 20:01:25 debug < Connection: keep-alive 
2021/07/08 20:01:25 debug <                        
panic: client.Do failed: oohelper: http status code indicates failure

goroutine 1 [running]:
github.com/ooni/probe-cli/v3/internal/runtimex.PanicOnError(...)
    /Users/sbs/src/github.com/bassosimone/ooniwcthcheck/probe-cli/internal/runtimex/runtimex.go:10
main.main()
    /Users/sbs/src/github.com/bassosimone/ooniwcthcheck/probe-cli/internal/cmd/oohelper/oohelper.go:56 +0x45c
bassosimone commented 3 years ago

For reference, this is what the new TH does:

> ./oohelper -debug -target https://www.aiadmk.website/ -server https://1.th.ooni.org/
2021/07/08 20:02:08 debug resolve www.aiadmk.website...
2021/07/08 20:02:08 debug resolve www.aiadmk.website... [208.109.9.99] in 1.541083ms
2021/07/08 20:02:08 debug out: {"http_request":"https://www.aiadmk.website/","http_request_headers":{"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Accept-Language":["en-US;q=0.8,en;q=0.5"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"]},"tcp_connect":["208.109.9.99:443"]}
2021/07/08 20:02:08 debug > POST https://1.th.ooni.org/
2021/07/08 20:02:08 debug > Content-Type: application/json
2021/07/08 20:02:08 debug > Host: 1.th.ooni.org    
2021/07/08 20:02:08 debug > User-Agent: oohelper/3.11.0-alpha ooniprobe-engine/3.11.0-alpha
2021/07/08 20:02:08 debug >                        
2021/07/08 20:02:08 debug resolve 1.th.ooni.org... 
2021/07/08 20:02:08 debug dial 8.8.8.8:853/tcp...  
2021/07/08 20:02:08 debug dial 8.8.8.8:853/tcp... ok in 23.234375ms
2021/07/08 20:02:08 debug tls {sni=8.8.8.8 next=[dot]}...
2021/07/08 20:02:08 debug tls {sni=8.8.8.8 next=[dot]}... ok in 41.565375ms {next= cipher=TLS_AES_128_GCM_SHA256 v=TLSv1.3}
2021/07/08 20:02:08 debug dial 8.8.8.8:853/tcp...  
2021/07/08 20:02:08 debug dial 8.8.8.8:853/tcp... ok in 22.197875ms
2021/07/08 20:02:08 debug tls {sni=8.8.8.8 next=[dot]}...
2021/07/08 20:02:08 debug tls {sni=8.8.8.8 next=[dot]}... ok in 40.650625ms {next= cipher=TLS_AES_128_GCM_SHA256 v=TLSv1.3}
2021/07/08 20:02:08 debug resolve 1.th.ooni.org... [162.243.175.67 2604:a880:400:d0::18c1:6001] in 225.251292ms
2021/07/08 20:02:08 debug dial 162.243.175.67:443/tcp...
2021/07/08 20:02:08 debug dial 162.243.175.67:443/tcp... ok in 122.940958ms
2021/07/08 20:02:08 debug tls {sni=1.th.ooni.org next=[h2 http/1.1]}...
2021/07/08 20:02:08 debug tls {sni=1.th.ooni.org next=[h2 http/1.1]}... ok in 125.605042ms {next=h2 cipher=TLS_AES_128_GCM_SHA256 v=TLSv1.3}
2021/07/08 20:02:24 debug < 200                    
2021/07/08 20:02:24 debug < Server: nginx/1.14.2   
2021/07/08 20:02:24 debug < Date: Thu, 08 Jul 2021 18:02:24 GMT
2021/07/08 20:02:24 debug < Content-Type: application/json
2021/07/08 20:02:24 debug < Content-Length: 244    
2021/07/08 20:02:24 debug < Strict-Transport-Security: max-age=63072000
2021/07/08 20:02:24 debug <                        
{
    "tcp_connect": {
        "208.109.9.99:443": {
            "status": false,
            "failure": "generic_timeout_error"
        }
    },
    "http_request": {
        "body_length": 0,
        "failure": "generic_timeout_error",
        "title": "",
        "headers": null,
        "status_code": 0
    },
    "dns": {
        "failure": null,
        "addrs": [
            "208.109.9.99"
        ]
    }
}