New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 823253 link

Starred by 5 users

Issue metadata

Status: Duplicate
Merged: issue 817970
Owner:
Last visit > 30 days ago
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Cannot save as HAR with content on remote debugging

Reported by ducbuiho...@gmail.com, Mar 19 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36

Steps to reproduce the problem:
1. Chrome on Mac version: 65.0.3325.162
2. Chrome on Android version: 65.0.3325.109
3. Open remote debugging on Android
4. Inspect a tab on Chrome on Android, URL: www.wsj.com
5. Open Network tab on DevTools
6. Reload to record the network activity (with or without "preserved log")
7. Click on "Save as HAR with content" on the DevTool

What is the expected behavior?
HAR file is saved

What went wrong?
While an empty HAR file is created, DevTools is stuck at "Collecting content..." and never finish

Did this work before? N/A 

Chrome version: 65.0.3325.162  Channel: stable
OS Version: OS X 10.13.3
Flash Version: 

The above steps succeed when I use Canary on Mac (67.0.3375.0) to remote debug Canary on Android (67.0.3375.0).
 
Running from Linux command line, I got the following error:
[21402:21402:0319/100354.984382:ERROR:CONSOLE(3566)] "Uncaught (in promise) TypeError: targetDate.getTime is not a function", source: chrome-devtools://devtools/remote/serve_rev/@c51e7be36d45c82784d30793cf2873d7d90fc148/shell.js (3566)

Comment 2 Deleted

I even cannot record to HAR files locally (no remote debugging), for cnn.com.
Owner: eostroukhov@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 5 by wdcr...@gmail.com, Mar 19 2018

I'm seeing this as well when I try to use the network.getHar() function or the network.onRequestFinished.addListener() function. Unfortunately it's breaking my company's ad debugging plugin. It seems the NetworkLog.HARLog.pseudoWallTime() is returning a date String rather than a Date. Then the expiresDate function in SDK.Cookie calls getTime() on that string and throws an error.
Screen Shot 2018-03-19 at 1.21.21 PM.png
227 KB View Download
I cannot store HAR files locally.

Comment 7 by y...@babator.com, Mar 25 2018

I see this in an extension that uses HAR. It stopped working after update to Chrome 65. I can see the same issue in the extension's console: 'targetDate.getTime is not a function TypeError: targetDate.getTime is not a function'.

Here's the call stack:
TypeError: targetDate.getTime is not a function TypeError: targetDate.getTime is not a function
    at SDK.Cookie.expiresDate (inspector.js:formatted:26314)
    at NetworkLog.HAREntry._buildCookie (inspector.js:formatted:39337)
    at Array.map (<anonymous>)
    at NetworkLog.HAREntry._buildCookies (inspector.js:formatted:39329)
    at NetworkLog.HAREntry._buildResponse (inspector.js:formatted:39237)
    at NetworkLog.HAREntry.build (inspector.js:formatted:39200)
    at Extensions.ExtensionServer._notifyRequestFinished (inspector.js:formatted:46148)
    at SDK.NetworkManager.dispatchEventToListeners (inspector.js:formatted:6543)
    at SDK.NetworkDispatcher._finishNetworkRequest (inspector.js:formatted:36654)
    at SDK.NetworkDispatcher.loadingFinished (inspector.js:formatted:36537)

This issue seems to be happening because the argument 'requestDate' passed to the function SDK.Cookie.expiresDate is a date string and not a date object.
Am seeing this as well when using chrome.devtools.network.onRequestFinished.addListener in an extension.
Mergedinto: 817970
Status: Duplicate (was: Assigned)

Sign in to add a comment