har-extractor
har-extractor copied to clipboard
extractor sometimes tries to open an extant directory as a file
Thank you for this useful tool.
Excerpt of har file: "request": { "method": "POST", "url": "https://archive.org/services/loans/beta/loan/", ... "response": { "status": 200, "statusText": "OK", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Server", "value": "nginx/1.16.1 (Ubuntu)" }, { "name": "Date", "value": "Mon, 17 Aug 2020 01:31:25 GMT" }, { "name": "Content-Type", "value": "application/json" }, ...
"request": {
"method": "POST",
"url": "https://archive.org/services/loans/beta/loan/",
... "response": { "status": 200, "statusText": "OK", "httpVersion": "HTTP/1.1", "headers": [ { "name": "Server", "value": "nginx/1.16.1 (Ubuntu)" }, { "name": "Date", "value": "Mon, 17 Aug 2020 01:31:25 GMT" }, { "name": "Content-Type", "value": "application/json" }, { ...
har-extractor creates a directory to hold a previous request, then tries to create a file of the same name to hold the second? Output:
...
illustrated/archive.org/services/loans/beta/loan/searchInside.php
illustrated/archive.org/services/loans/beta/loan
illustratedsail&rigtuning.har.gz
{ Error: EISDIR: illegal operation on a directory, open 'illustrated/archive.org/services/loans/beta/loan'
at Object.openSync (fs.js:443:3)
at Object.writeFileSync (fs.js:1194:35)
at /usr/local/lib/node_modules/har-extractor/lib/har-extractor.js:48:16
at Array.forEach (
Oops -- looks like I embedded a link to the uploaded failing har file right in the middle of the debug output. Sorry!