har-export-trigger icon indicating copy to clipboard operation
har-export-trigger copied to clipboard

unable to automatically saves HAR to local dir

Open shigatsuverame opened this issue 6 years ago • 1 comments

Hi @soulgalore, @janodvarko

Can you help me out on this? Using this script, var options = { token: "test", fileName: "my test har file %Y, %H:%M:%S" // Name of the file };

HAR.triggerExport(options).then(result => { // The local file is available now, result.data is null since options.getData wasn't set. });

which was working way back on firefox 45,and now it's no longer working for me using firefox 61.

HAR file in not available in this target directory: The default target directory is /har/logs which is stated in https://github.com/firebug/har-export-trigger/wiki/Examples

shigatsuverame avatar Jun 19 '18 08:06 shigatsuverame

Hi @shigatsuverame you are using the old plugin. With the new one you need to fetch it with JavaScript and store the file yourself.

Best Peter

soulgalore avatar Nov 24 '18 12:11 soulgalore