# Generated HAR is not displayed correctly in HAR viewer

**URL:** <https://discourse.mitmproxy.org/t/generated-har-is-not-displayed-correctly-in-har-viewer/1019>\
**Category:** help\
**Created:** [April 30, 2018, 11:36am UTC](https://discourse.mitmproxy.org/t/generated-har-is-not-displayed-correctly-in-har-viewer/1019 "2018-04-30T11:36:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pulkitsharma07](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@pulkitsharma07](https://discourse.mitmproxy.org/u/pulkitsharma07)\
**Post date:** [April 30, 2018, 11:36am UTC](https://discourse.mitmproxy.org/t/generated-har-is-not-displayed-correctly-in-har-viewer/1019/1 "2018-04-30T11:36:11Z")

</div>

Hi,

I am using mitmproxy v3.0.4 and generating a HAR file using the following:

`mitmdump -n -r dumpfile -s "har_dump.py" --set hardump="ooo.har"`

On opening `ooo.har` in any online HAR viewer, I see nothing, whereas there are entries in the HAR file.  
On difference which I see between HAR files that show up correctly, is the absence of the `pages` key.  
It is obvious that the `har_dump.py` has not chosen to set the `pages` key, any particular reason for that ? I can open an issue on Github, and possibly try to fix that.

As a workaround for that I tried stubbing some generic data under `pages` in `har_dump.py`, but still the HAR viewer shows it empty, maybe I have messed some timestamps etc.

But, anyways, what can be done in this case ?

Thanks

---

<div class="post-metadata">

**Author:** ![nealmcb](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/nealmcb/32/399_2.png) [@nealmcb](https://discourse.mitmproxy.org/u/nealmcb)\
**Post date:** [February 26, 2019, 6:52pm UTC](https://discourse.mitmproxy.org/t/generated-har-is-not-displayed-correctly-in-har-viewer/1019/2 "2019-02-26T18:52:09Z")

</div>

It works for me to open the generated HAR files by drag-and-drop to Chrome’s web developer “network” tab, as noted at [https://stackoverflow.com/a/47164935/507544](https://stackoverflow.com/a/47164935/507544).

Can you give an example `ooo.har` file, and an example online HAR viewer?
