Skip to content
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

Export failed #6

Open
Mpreyzner opened this issue Aug 3, 2017 · 7 comments
Open

Export failed #6

Mpreyzner opened this issue Aug 3, 2017 · 7 comments

Comments

@Mpreyzner
Copy link

Export failed with message:
JavaScript Exception: TypeError: undefined is not an object (evaluating 'request.getLastExchange') ({ column = 40; line = 20; })
Example request: ## Request (16) curl "http://google.pl" \ -H "Cookie: NID=109=ljlBjSan82EdkSA6bhBio2ziM2H8gwjIkA663uxLvuiO8pHBxPAtpOw3ZC9kLIimb5zcZplZxBAhm9Ch2KWmU2FigiBB8iBsfL8iyhv-HblamvqrOK1SyFutHqMba7UO"

Paw Version 3.1.2 (Retail)

@jackd942
Copy link

jackd942 commented Sep 23, 2017

Getting the same error on my end. Version 3.1.4

@lighter
Copy link

lighter commented Oct 30, 2017

I modified ApiDocGenerator.js.

var request = requests[0]; //context.getCurrentRequest();

It's work for me.

@brandonkelly
Copy link

Getting this too, but if I try modifying ApiDocGenerator.js, Paw detects that I’ve modified something and the extension goes away.

@terranc
Copy link

terranc commented Sep 26, 2018

same error

@jdarault
Copy link

jdarault commented Mar 8, 2019

This error still occurs.
Is anyone find a solution ?

@yuanhaisu
Copy link

yuanhaisu commented May 13, 2019

if the response is null in Paw request ,it will occurs this error ,because no check for request.getLastExchange().responseBody == undefined

modified ApiDocGenerator.js

`var exchange = request.getLastExchange()

	if (exchange!=undefined) {


		body = exchange.responseBody;
		has_body = body.length > 0;
		if (has_body){
			var responseBody = JSON.parse(exchange.responseBody);

			extractKeyNamesAndTypes(responseBody, response);
		}

		
	}`

@yuanhaisu
Copy link

@jdarault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants