Failures are not getting written to the report file
At 2013-09-28 20:23:08 Arturo Filastò wrote: Here are the steps to reproduce.
Given the content of dummy_input.txt is:
http://google.com/ http://something.invalid/ And running:
./bin/ooniprobe -n blocking/http_requests -f dummy_input.txt The content of the report is:
###########################################
OONI Probe Report for http_requests_test (0.2.3)
Sat Sep 28 22:17:30 2013
###########################################
input_hashes: [be99d655ded90c4cb2d3d06030f840a5a66ca4d843087a6fa91fbbcfc3a517c5] options: [-f, dummy_input.txt] probe_asn: AS16276 probe_cc: FR probe_ip: 127.0.0.1 software_name: ooniprobe software_version: 1.0.0-rc3 start_time: 1380399450.591624 test_name: http_requests_test test_version: 0.2.3 ...
agent: agent body_length_match: false body_proportion: 0.589041095890411 control_failure: null experiment_failure: null factor: 0.8 headers_diff: !!set {} headers_match: true input: http://google.com/ requests:
- request:
body: null
headers:
-
- User-Agent
- ['Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7'] method: GET url: http://google.com/ response: body: "<meta http-equiv="content-type" content="text/html;charset=utf-8"\
\n
301 Moved\n
\ moved\n<A HREF="http://www.google.com/">here.\r\n\r\n" code: 301 headers: -
- Alternate-Protocol
- ['80:quic']
-
- Content-Length
- ['219']
-
- X-XSS-Protection
- [1; mode=block]
-
- Expires
- ['Mon, 28 Oct 2013 20:17:30 GMT']
-
- Server
- [gws]
-
- Connection
- [close]
-
- Location
- ['http://www.google.com/']
-
- Cache-Control
- ['public, max-age=2592000']
-
- Date
- ['Sat, 28 Sep 2013 20:17:30 GMT']
-
- X-Frame-Options
- [SAMEORIGIN]
-
- Content-Type
- [text/html; charset=UTF-8]
-
- request:
body: null
headers:
-
- User-Agent
- ['Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7'] method: GET url: shttp://google.com/ response: body: '
-
- Alternate-Protocol
- ['80:quic']
-
- Content-Length
- ['219']
-
- X-XSS-Protection
- [1; mode=block]
-
- Expires
- ['Mon, 28 Oct 2013 20:17:31 GMT']
-
- Server
- [gws]
-
- Connection
- [close]
-
- Location
- ['http://www.google.com/']
-
- Cache-Control
- ['public, max-age=2592000']
-
- Date
- ['Sat, 28 Sep 2013 20:17:31 GMT']
-
- X-Frame-Options
- [SAMEORIGIN]
-
- Content-Type
- [text/html; charset=UTF-8]
-
- request:
body: null
headers:
-
- User-Agent
- ['Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6'] method: GET url: http://google.com/ response: body: "<meta http-equiv="content-type" content="text/html;charset=utf-8"\
\n
301 Moved\n
\ moved\n<A HREF="http://www.google.com/">here.\r\n\r\n" code: 301 headers: -
- Alternate-Protocol
- ['80:quic']
-
- Content-Length
- ['219']
-
- X-XSS-Protection
- [1; mode=block]
-
- Expires
- ['Mon, 28 Oct 2013 20:17:31 GMT']
-
- Server
- [gws]
-
- Connection
- [close]
-
- Location
- ['http://www.google.com/']
-
- Cache-Control
- ['public, max-age=2592000']
-
- Date
- ['Sat, 28 Sep 2013 20:17:31 GMT']
-
- X-Frame-Options
- [SAMEORIGIN]
-
- Content-Type
- [text/html; charset=UTF-8]
-
- request:
body: null
headers:
-
- User-Agent
- ['Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6'] method: GET url: shttp://google.com/ response: body: '
-
- Alternate-Protocol
- ['80:quic']
-
- Content-Length
- ['219']
-
- X-XSS-Protection
- [1; mode=block]
-
- Expires
- ['Mon, 28 Oct 2013 20:17:34 GMT']
-
- Server
- [gws]
-
- Connection
- [close]
-
- Location
- ['http://www.google.com/']
-
- Cache-Control
- ['public, max-age=2592000']
-
- Date
- ['Sat, 28 Sep 2013 20:17:34 GMT']
-
- X-Frame-Options
- [SAMEORIGIN]
-
- Content-Type
- [text/html; charset=UTF-8] socksproxy: null ...
-
...
I would expect the last report entry to contain the failures of the `http://something.invalid/` URL.
This issue was automatically migrated from github issue https://github.com/TheTorProject/ooni-probe/issues/215