firefox-devtools / har-export-trigger

Trigger HAR export any time directly from within a page.
https://addons.mozilla.org/en-US/firefox/addon/har-export-trigger/
Mozilla Public License 2.0
55 stars 15 forks source link

startDateTime is a NULL object #7

Closed asaverim8 closed 6 years ago

asaverim8 commented 6 years ago

Hey all, Have you noticed that the startDateTime is a null object? (thus failing validation when .har file loaded).

trigger_startdatetime

Anything i'm missing?

When desactivating har_validation: harviewer

Google-chrome v62 or v64 har-export-trigger: Last version

janodvarko commented 6 years ago

Can you please file a bug here: https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Developer%20Tools%3A%20Netmonitor

I'll fix that. Thanks, Honza

xmhubj commented 6 years ago

I think this one it's related to browser chrome, on Firefox the startedDateTime is an ISO 8601 string, looks good.

har_entry_starteddatetime

I once hit similar issue on Chrome last year, on Chrome startedDateTime returned by chrome.devtools.network.getHAR is a Date object, rather than a string. I opened an issue in Chromium project, see here. They said it has been fixed....

asaverim8 commented 6 years ago

+agreee for Firefox, everything seems fine

But for Chrome the startedDateTime is an object. Tested on chrome 62 / 63 / 64

fert

You made a toString() to the har message in devtools.js?

xmhubj commented 6 years ago

It was just a workaround, I had to iterate all the entries and pages in the har log, and use toISOString to convert startedDateTime to string one by one, a little bit ugly. Chrome should fix this issue, just like what Firefox does.

janodvarko commented 6 years ago

Thanks for the info!

Since this is Chrome bug (perhaps fixed) not related to Firefox and HARExportTrigger - I am closing this issue report.

Honza