Giter Site home page Giter Site logo

luckymarmot / paw-harimporter Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 1.0 42 KB

An importer for Paw that imports HAR dumps (e.g. from Chrome Dev Tools)

Home Page: https://paw.cloud/extensions/HARImporter

License: MIT License

Makefile 5.69% JavaScript 94.31%
paw http httparchive har

paw-harimporter's Introduction

Build Status

Paw HAR importer

This importer allows you to import HAR exports (e.g. from Chrome Dev Tools) into Paw.

Contributing

If you want to contribute, this is how to build the extension and install it to your Paw settings:

yarn install # or npm install
make install

To make a distributable archive:

make clean && make archive

License

MIT License. Copyright 2015-2017 Paw Inc. Originally created by Jeroen Visser @jeroenvisser101

paw-harimporter's People

Contributors

djds23 avatar jeroenvisser101 avatar jonathanmontane avatar kwent avatar mittsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

djds23

paw-harimporter's Issues

Import fails with 'Invalid UTF-8 detected'

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

screen shot 2018-04-02 at 11 50 43

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

How does it work?

I have just installed the plugin, and I have a hard time figuring out where to paste my HAR-request.

Fails to install due to I/O error

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"

  • Repeated with the "extensions javascript console" enabled but nothing shows up there.
  • Closed and reopened app... same error.
  • Tried with "Install extension by identifier" from app preferences with id 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.

Automatically set the body type

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.