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

Support for aborted and timed out requests #12

Open
exogen opened this issue Jul 18, 2019 · 1 comment
Open

Support for aborted and timed out requests #12

exogen opened this issue Jul 18, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@exogen
Copy link
Owner

exogen commented Jul 18, 2019

Right now, if there is no response (for example, if the request is timed out or aborted), no entry will be added to the HAR log.

This means you get no visibility into these requests – you could see things long a long period of no network activity, and then a succesful retry request. But there actually was network activity, it was just a timed out request.

I'm not sure how aborted and timed out requests are represented in HAR files but will have to generate such requests in Chrome to find out.

@exogen exogen added the bug Something isn't working label Jul 18, 2019
@exogen
Copy link
Owner Author

exogen commented Jul 30, 2019

Example of a timeout HAR entry from Chrome:

{
  "startedDateTime": "2019-07-30T02:05:45.342Z",
  "time": 240.00864399999955,
  "request": {
    "method": "GET",
    "url": "http://localhost:3000/timeout",
    "httpVersion": "",
    "headers": [
      {
        "name": "Referer",
        "value": "http://localhost:3000/"
      },
      {
        "name": "User-Agent",
        "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
      }
    ],
    "queryString": [],
    "cookies": [],
    "headersSize": -1,
    "bodySize": 0
  },
  "response": {
    "status": 0,
    "statusText": "",
    "httpVersion": "",
    "headers": [],
    "cookies": [],
    "content": {
      "size": 0,
      "mimeType": "x-unknown"
    },
    "redirectURL": "",
    "headersSize": -1,
    "bodySize": -1,
    "_transferSize": 0,
    "_error": "net::ERR_EMPTY_RESPONSE"
  },
  "cache": {},
  "timings": {
    "blocked": 240.00864399999955,
    "dns": -1,
    "ssl": -1,
    "connect": -1,
    "send": 0,
    "wait": 0,
    "receive": 0,
    "_blocked_queueing": -1
  },
  "serverIPAddress": "",
  "_initiator": {
    "type": "parser",
    "url": "http://localhost:3000/",
    "lineNumber": 8
  },
  "_priority": "High",
  "_resourceType": "image",
  "pageref": "page_1"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant