Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'startedDateTime' of undefined #20

Open
jpillora opened this issue May 14, 2013 · 0 comments
Open

Cannot read property 'startedDateTime' of undefined #20

jpillora opened this issue May 14, 2013 · 0 comments

Comments

@jpillora
Copy link

May 15th 2013 - Mac OS X - Version 26.0.1410.65

I'm guessing Chrome has been updated to a different version of HAR ?

TypeError: Cannot read property 'startedDateTime' of undefined
    at Object.HAREntry (http://ericduran.github.io/chromeHAR/js/libs/HAREntry.js:49:50)
    at Object.<anonymous> (http://ericduran.github.io/chromeHAR/js/controllers.js:22:20)
    at Function.x.extend.each (http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js:4:4572)
    at Object.$scope.updateHar (http://ericduran.github.io/chromeHAR/js/controllers.js:21:7)
    at http://ericduran.github.io/chromeHAR/js/controllers.js:122:18
    at Object.e.$eval (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js:88:272)
    at Object.e.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js:88:379)
    at FileReader.reader.onload (http://ericduran.github.io/chromeHAR/js/controllers.js:121:16) angular.min.js:62

while loading HAR file:

{
  "log": {
    "version": "1.2",
    "creator": {
      "name": "WebInspector",
      "version": "537.31"
    },
    "pages": [],
    "entries": [
      {
        "startedDateTime": "2013-05-14T07:31:55.685Z",
        "time": 223,
        "request": {
          "method": "POST",
          "url": "http://REDACTED",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Cookie",
              "value": "REDACTED"
            },
            {
              "name": "Origin",
              "value": "http://REDACTED"
            },
            {
              "name": "Accept-Encoding",
              "value": "gzip,deflate,sdch"
            },
            {
              "name": "Accept-Language",
              "value": "en-US,en;q=0.8"
            },
            {
              "name": "X-Requested-With",
              "value": "XMLHttpRequest"
            },
            {
              "name": "Connection",
              "value": "keep-alive"
            },
            {
              "name": "Content-Length",
              "value": "1566"
            },
            {
              "name": "Pragma",
              "value": "no-cache"
            },
            {
              "name": "Accept-Charset",
              "value": "ISO-8859-1,utf-8;q=0.7,*;q=0.3"
            },
            {
              "name": "Host",
              "value": "REDACTED"
            },
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31"
            },
            {
              "name": "Content-Type",
              "value": "application/x-www-form-urlencoded; charset=UTF-8"
            },
            {
              "name": "Accept",
              "value": "*/*"
            },
            {
              "name": "Cache-Control",
              "value": "no-cache"
            },
            {
              "name": "Referer",
              "value": "http://REDACTED/"
            },
            {
              "name": "DNT",
              "value": "1"
            }
          ],
          "queryString": [],
          "cookies": [
            {
              "name": "session_start_time",
              "value": "1362528704786",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "k_visit",
              "value": "1",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "__utma",
              "value": "228920153.132626423.1364164193.1364164193.1364447815.2",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "__utmc",
              "value": "228920153",
              "expires": null,
              "httpOnly": false,
              "secure": false
            },
            {
              "name": "_ga",
              "value": "1.4.132626423.1364164193",
              "expires": null,
              "httpOnly": false,
              "secure": false
            }
          ],
          "headersSize": 915,
          "bodySize": 1566,
          "postData": {
            "mimeType": "application/x-www-form-urlencoded; charset=UTF-8",
            "text":"{ REDACTED}",
            "params": [
              {
                "name": "{ REDACTED }",
                "value": ""
              }
            ]
          }
        },
        "response": {
          "status": 400,
          "statusText": "Bad Request",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Pragma",
              "value": "no-cache"
            },
            {
              "name": "Date",
              "value": "Tue, 14 May 2013 23:51:27 GMT"
            },
            {
              "name": "X-Error-Message",
              "value": "There was an error with the data of the request"
            },
            {
              "name": "Server",
              "value": "nginx/1.1.19"
            },
            {
              "name": "X-Powered-By",
              "value": "PHP/5.3.10-1ubuntu3.5"
            },
            {
              "name": "Transfer-Encoding",
              "value": "chunked"
            },
            {
              "name": "Access-Control-Allow-Methods",
              "value": "OPTIONS, DELETE, GET, POST, PUT, HEAD"
            },
            {
              "name": "Content-Type",
              "value": "text/html"
            },
            {
              "name": "Access-Control-Allow-Origin",
              "value": "*"
            },
            {
              "name": "Cache-Control",
              "value": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
            },
            {
              "name": "Access-Control-Allow-Credentials",
              "value": "true"
            },
            {
              "name": "Connection",
              "value": "keep-alive"
            },
            {
              "name": "X-Error-Code",
              "value": "MALFORMED_REQUEST"
            },
            {
              "name": "Access-Control-Allow-Headers",
              "value": "Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, Origin, Authorization, Accept"
            },
            {
              "name": "Expires",
              "value": "Thu, 19 Nov 1981 08:52:00 GMT"
            }
          ],
          "cookies": [],
          "content": {
            "size": 123,
            "mimeType": "text/html",
            "compression": -11,
            "text": "[{\"message\":\"Did you complete your Highest commenced educational qualification\",\"fields\":\"ishighestQualificationComplete\"}]"
          },
          "redirectURL": "",
          "headersSize": 750,
          "bodySize": 134
        },
        "cache": {},
        "timings": {
          "blocked": 0,
          "dns": -1,
          "connect": -1,
          "send": 0,
          "wait": 221,
          "receive": 1,
          "ssl": -1
        }
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant