Open Bug 1213910 Opened 9 years ago Updated 2 years ago

HAR export failed to add required response fields httpVersion and headerSize

Categories

(DevTools :: Netmonitor, defect, P3)

41 Branch
defect

Tracking

(Not tracked)

People

(Reporter: mss, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
Build ID: 20151001175956

Steps to reproduce:

I recorded a session and exported it as a HAR file. Later I tried to open it with the Chrome HAR Viewer extension.


Actual results:

The HAR Viewer failed to load the file and complained:

log.entries[31].request.httpVersion is missing and is not optional
log.entries[31].response.httpVersion is missing and is not optional
log.entries[31].response.headerSize is missing and is not optional



Expected results:

The HAR file should have all required fields.

I can only post a redacted version of the HAR which you can find below. I think I either cancelled the request in question or it failed due to a network error.


      {
        "pageref": "page_1",
        "startedDateTime": "2015-10-12T21:42:48.325+08:00",
        "time": 0,
        "request": {
          "bodySize": 0,
          "method": "POST",
          "url": "https://www.example.com/ajax/login/check_login_for_idle_logout.inc.php",
          "headers": [
            {
              "name": "Host",
              "value": "www.example.com"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"
            },
            {
              "name": "Accept",
              "value": "*/*"
            },
            {
              "name": "Accept-Language",
              "value": "en-US,en;q=0.5"
            },
            {
              "name": "Accept-Encoding",
              "value": "gzip, deflate"
            },
            {
              "name": "X-Requested-With",
              "value": "XMLHttpRequest"
            },
            {
              "name": "Referer",
              "value": "https://www.example.com/en/somepath/edit__167.html"
            },
            {
              "name": "Cookie",
              "value": "/scms_language=en; _ga=somega; PHPSESSID=somesid; userlogincodecookie=somebody%40example.com%3Axx%21%3Ayy"
            },
            {
              "name": "Connection",
              "value": "keep-alive"
            },
            {
              "name": "Pragma",
              "value": "no-cache"
            },
            {
              "name": "Cache-Control",
              "value": "no-cache"
            },
            {
              "name": "Content-Length",
              "value": "0"
            }
          ],
          "cookies": [
            {
              "name": "/scms_language",
              "value": "en"
            },
            {
              "name": "_ga",
              "value": "somega"
            },
            {
              "name": "PHPSESSID",
              "value": "somesid"
            },
            {
              "name": "userlogincodecookie",
              "value": "somebody@example.com:xx:yy"
            }
          ],
          "queryString": [],
          "postData": {
            "mimeType": "",
            "params": [],
            "text": ""
          },
          "headersSize": 644
        },
        "response": {
          "status": 0,
          "statusText": "",
          "headers": [
            {
              "name": "Date",
              "value": "Mon, 12 Oct 2015 13:42:31 GMT"
            },
            {
              "name": "Server",
              "value": "Apache/2.2"
            },
            {
              "name": "Vary",
              "value": "Accept-Encoding"
            },
            {
              "name": "Content-Encoding",
              "value": "gzip"
            },
            {
              "name": "Keep-Alive",
              "value": "timeout=5, max=98"
            },
            {
              "name": "Connection",
              "value": "Keep-Alive"
            },
            {
              "name": "Transfer-Encoding",
              "value": "chunked"
            },
            {
              "name": "Content-Type",
              "value": "text/html"
            }
          ],
          "cookies": [],
          "content": {
            "mimeType": "text/html",
            "size": 0,
            "text": ""
          },
          "redirectURL": "",
          "bodySize": 26
        },
        "cache": {},
        "timings": {
          "blocked": 0,
          "dns": 0,
          "connect": 0,
          "send": 0,
          "wait": 0,
          "receive": 0
        }
      },
Component: Untriaged → Developer Tools: Netmonitor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.