sitespeedio / chrome-har

Create HAR files from Chrome Debugging Protocol data
MIT License
149 stars 50 forks source link

Site content can make the parsing fail #4

Closed soulgalore closed 7 years ago

soulgalore commented 7 years ago
INFO - b'[2017-06-29 21:33:28] INFO: Testing url https://www.macys.com/ run 1\n'
INFO - b'[2017-06-29 21:33:39] ERROR: SyntaxError: Unexpected token \x1f in JSON at position 0\n'
INFO - b'SyntaxError: Unexpected token \x1f in JSON at position 0\n'
INFO - b' at Object.parse (native)\n'
INFO - b' at parsePostData (/usr/src/app/node_modules/chrome-har/index.js:570:37)\n'

See https://github.com/sitespeedio/sitespeed.io/issues/1654

soulgalore commented 7 years ago

https://github.com/sitespeedio/chrome-har/blob/master/index.js#L675 is the problem. ping @tobli

tobli commented 7 years ago

@soulgalore ok to close this one now?