luckymarmot / paw-harimporter Goto Github PK
View Code? Open in Web Editor NEWAn importer for Paw that imports HAR dumps (e.g. from Chrome Dev Tools)
Home Page: https://paw.cloud/extensions/HARImporter
License: MIT License
An importer for Paw that imports HAR dumps (e.g. from Chrome Dev Tools)
Home Page: https://paw.cloud/extensions/HARImporter
License: MIT License
Paw Version 3.1.10 (Retail)
Build 10DD3D (3001010001)
Document Model AA921A
Tried to install from https://paw.cloud/extensions/HARImporter > [Install Extension]
Paw app briefliy displays "loading extension info" or something like that and then errors out with message: "The operation couldn't be completed. Input/output error"
com.luckymarmot.PawExtensions.HARImporter
... same error.Extensions directory at
/Users/XXXX/Library/Containers/com.luckymarmot.Paw/Data/Library/Application Support/com.luckymarmot.Paw/Extensions
is empty.
I have just installed the plugin, and I have a hard time figuring out where to paste my HAR-request.
Paw lets users set different body types (plain text, form url encoded, JSON, multipart). It would be nice to detect which body type is most appropriate depending on the Content-Type
header.
Here is the API in details: https://luckymarmot.com/paw/doc/Extensions/Reference/Request#urlencodedbody
Though, I'm thinking that maybe should we factor this in a new common API like:
request.setAppropriateBody(body_string, content_type)
It would work with:
request.setAppropriateBody("{\"value\":42}", "application/json")
... @jeroenvisser101 what do you think? is it worth a new JS API, or just do the parsing in this code?
I received a HAR file to investigate and I could not open it with Paw. I managed to replicate the issue by browsing the paw.cloud site, saving it as a HAR and I got the same error.
The extension console shows this:
JS Exception Line 2635. Error: Invalid UTF-8 detected
I've uploaded the HAR file: https://cl.ly/3t1a3k0z0O3d
The file can be opened with Charles, the Chrome extension Has Viewer and Sublime Text 3.
Paw Details:
Version 3.1.5 (Retail)
Build D09956 (3001005003) | Document Model AFD743
The HAR file was generated with Charles for Mac.
"content":{"size":0,"mimeType":null}
and
"redirectURL":null
Seem to cause the issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.