-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HAR Export Trigger to work with single HTTP event & example page not working #2
Comments
HAR Export Trigger 0.5.0 beta 4 is available on AMO
Please try the test page again. The error message was wrong, you need to set Follow instructions on this page: The test page shows how to use the HAR API and you can:
First make the example page working and then let me know if all your use cases are covered. Honza |
Okay, let's start at the top.
Ensuring that I have all of the above taken care of, I then attempted to load the test page again and received the same error: Am I doing something wrong? --Travis |
Honza |
Changing the value to "test" made a difference, as the security check error no longer appears. However, nothing else is shown in the console either. Looking at your instructions, I also navigated to my firefox profile folders (C:\Users\me\AppData\Roaming\Mozilla\Firefox\Profiles) and there appears to be no "\har\logs" folder present. Just to be sure, I've searched my entire C:\ drive in case I somehow missed them...but the only .har files that I have are the ones from my firebug/netexport script. |
Is there any error displayed in the Browser Console? Ctrl+Shift+J Perhaps you need to refresh the page? Honza |
Yes! It's the har log (JSON string) fetched through the API (parsed and logged as an object, see the page script in the Debugger panel, F12). You can also go to /har/logs and see HAR files (in case you have the enableAutoExportToFile pref set to true. Or if you pass Honza |
Okay, awesome....I can see the log files created. I have two questions, though.
Here's my use-case, and why I want to collect the HAR's to begin with:
Will I ultimately be able to do this with the HAR Export Trigger? |
You can still collect HAR without putting a script into a site. Just set Using HAR API is not a requirement it's just an additional feature that makes some complex system a lot easier to integrate.
I am not sure what you mean by 'var options', but you can specify default name for the generated HAR file in Note that if the target folder already contains a file with the same name it won't be overridden. For example, if your default name is "archive" and the folder already contains "archive.har" the next har file name will be "archive-1.har", the next one "archive-2.har", etc.
I don't understand this part. Why you need to include the viewer in the automated process? Just for the record, here is an example:
Yes, I think so. HAR Export Trigger supports the same set of features as Firebug+NetExport combo. Does that make sense? Honza |
HI Honza, Yes, this makes sense...mostly. My java knowledge is about 3-4 weeks old, so your confusion as to why I wanted to use the online HAR viewer to extract the info is because it was the easiest way I could think of and not knowing a better way. Kind of like taking 3 left turns instead of 1 right - you get to the same place, but if you don't know how to "turn right", then the long, hard way is the only way you can go. :) I'll see what I can do to work your example above into extracting the query string parameter that I'm looking for. I'm fairly sure I'll be spending a good deal of time googling how to effectively apply it, but at least NOW I have a much more solid foot to walk on than I did last week. And again, thank you very much. I truly appreciate your time helping me to get this figured out. |
Excellent I am closing this report, since all should be working fine now (and btw. the latest release is 0.5.0 beta 5 atm). Feel free to create a new report any time you are experiencing an issue. Honza |
Hi thegreyfawkes, "There would be 3 HAR exports: one for the initial page visit, one for logging into the site, and one for the product search that would result in the desire HAR export." Were you able to successfully export har files using harexport manual trigger to a single .har file? Thanks in advance. |
Per previous issue report (firebug/netexport#21), I am attempting to extract a single HAR export to capture the traffic that results in a tracking pixel returning a query string parameter.
Previous to HAR Export Trigger, I had this setup sort-of working with latest (non-developer) Firefox, Firebug 2.0.12, and NetExport 0.9b7 (code for this in the link above). The two main issues being that:
Lastly, I cannot seem to get the HAR Export Trigger example page to work, even after enabling the API within Firefox. After clicking "Execute XHR", I see an event in the dev panel, but clicking "HAR Export" gives me the message saying that I have not enabled the API ("Security check didn't pass. You need to set 'devtools.netmonitor.har.contentAPIToken' pref to match the string token passed into HAR object API call (browser restart is required").
Thank you in advance for your time!
EDIT: Forgot to add that I also have the devtools.netmonitor.har.enableAutoExportToFile preference enabled as well.
The text was updated successfully, but these errors were encountered: