Closed Bug 1694156 Opened 4 years ago Closed 2 years ago

Unable to download the HAR file from DEVTools

Categories

(DevTools :: Netmonitor, defect)

Firefox 85
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: ralfhake01, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0

Steps to reproduce:

For an online game, I need to open the network section of the web developer and click on Network. I need to disable the cache and do some steps in the game to collect data send from the game to the browser. At the end of this process, I need to go back into the web developer and click on Save all as HAR. But there is no window where I can choose the place to save the file, it is not opening. When I choose another game with the same process and where I have less amount of data that should be saved, it is working. Just when the collected data is getting too much, I am not able to save the file to my computer. I hope that this description will help to reproduce the issue. I am using 85.0.2 (64-bit) of Firefox on Windows 10.

Actual results:

Nothing happened. The "Save as"-window is not opening and I am not able to save the HAR file to my computer. If I am able to save it, it is just a empty file with 0KB.

Expected results:

An HAR file should have been saved to my computer.

Thanks for reporting!
We cannot seem to reproduce it.
Would you happen to have a simple testcase or test page that we can use to reproduce the issue.

Flags: needinfo?(ralfhake01)

Hello!
I am trying to describe the issue more in detail.
The issue is occuring when collecting data from the online browser game Forge of Empires. The following link will redirect you to a video on YouTube that shows the process of data collection: https://www.youtube.com/watch?v=BgVmZySx41o (0:22 - 3:30). As you can see in minute 3:30, you have to save the file to your computer but this window to choose the place for the file is not opening in most cases and if it's opening, the HAR file will has a size of 0KB in some cases. The amount of data shown in the video is smaller then in the cases we are experiencing right now.
The problems occur if there are more than 2000 requests and the transmitted data are larger then 500MB. In those cases, the previous mentioned behavior of Firefox occurs.
If required, I can take a screen capture video to show you the issue more detailed.

I hope that these information helps you to reproduce the issue.

I have taken another screen capturing video which you can find here: https://youtu.be/9WRvs5Yzeco
As you can see, the size of data is at 585 MB, the transferred data is 105MB. You can see that I'm unable to save all data in a HAR file. When I was entering a filter into the text bar, I was able to save at least the json files. I hope this will help.

Hi Ralf, thanks for the update!

We are still not able to reproduce this using our test cases. We generated over 2000 requests, 1GB transferred and we are able to save all as HAR (it's 40 MB HAR file).

We are still investigating this, but simplified test case would help a lot.

Thank you,

Honza

Hi Jan!

can you please tell me how to create a simplified test case? I would like to try create one for this issue can be fixed.

Thank you,

Ralf

Hi Ralf,
We just probably just need a simple webpage link , which generates lots of requests,
You can create a page with a script which generates lots of fetch calls etc (and replicates the issue)

Hi Ralf,
did the comment #6 help?
Any luck with creating the test page?
(anything that helps us to reproduce the problem on our machines helps a lot)

Thank you,
Honza

Closing this for now as difficult to reproduce.
Please feel free to reopen if it occurs again and you have a good STR.

Thanks

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID

This happened even for me. While testing a tracking site which send a small 4KB data every second, after about 15-20 minutes if I try to backup logs as har file, the file shows empty as 0KB.
I tried immediately saving the log which was successful across websites but in a long run even if the data is not very big, saving data fails. I tried with copying data also but no luck.

Status: RESOLVED → UNCONFIRMED
Flags: needinfo?(ralfhake01)
Resolution: INVALID → ---

For me, reason for the empty file was due to image files contained in either of reponse or request. Once, I removed all media files, har files are working properly.
However, I believe that there should be some confirmation dialog to ask dev to remove media files.

Here is my STRs that work for me:

  1. Load google.com
  2. Open the Devtools Toolbox and select the Network panel
  3. Reload the page to generate requests for the Network panel
  4. Right click on the list and pick "Save All as HAR"
  5. Check the result HAR file

For me the *.har file isn't empty even if there are images.
Does this work for you?
Do you have a page we could use to see the problem?

Thank you!

Flags: needinfo?(ralfhake01)
Flags: needinfo?(DARPAN5552)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:Honza, since the bug has recent activity, could you please find another way to get the information or close the bug as INCOMPLETE if it is not actionable?

For more information, please visit auto_nag documentation.

Flags: needinfo?(ralfhake01) → needinfo?(odvarko)

I wasn't able to reproduce the bug on my machine and there is no response from the reporter.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago2 years ago
Flags: needinfo?(odvarko)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.