Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

API Tester Header-Variable-Extraction not working

Hello,

Since today API tester does not extract variables from requests like it used to.

Header Authorization

${<projectname>."Auth"."response"."body"} creates : ${getEntityById("3a73b4ce-e8fe-46f7-9ec2-868c8a306306")."response"."body"."accessToken"}

Instead of the Expected Authorization: <accessToken>

And my API receives the the string 

"${getEntityById("3a73b4ce-e8fe-46f7-9ec2-868c8a306306")."response"."body"."accessToken"}"

in the header.

Also using the magic wand to click to the <accessToken> doesn't work. A warning informs me:

"The request "Auth" has not been run yet, the values could not be extracted from its response. Please send the request in order to evaluate this expression."

But I have run the request "Auth" successfully.

 

Kind Regards,

pschossig

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi there,

 

I am not sure to understand what you're trying to do.

Could you please provide us with a more detailed explanation?

 

[EDIT] Moreover, we've tried to reproduce the issue at our end but without success.

If you can send us the steps you have followed or even provide us with an example of your test (export from API Tester > .json) calling any non-private API (e.g.http://httpbin.org/) that would even be better for us.

 

Many thanks in advance.

 

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hi there,

 

I am not sure to understand what you're trying to do.

Could you please provide us with a more detailed explanation?

 

[EDIT] Moreover, we've tried to reproduce the issue at our end but without success.

If you can send us the steps you have followed or even provide us with an example of your test (export from API Tester > .json) calling any non-private API (e.g.http://httpbin.org/) that would even be better for us.

 

Many thanks in advance.

 

Anonymous
Not applicable
Author

I tried to recreate the problem this morning, and now it works fine.
Anonymous
Not applicable
Author

Extraction of Variables is broken again.
Since you guys took over this project, it started to degenerate pretty fast and is now unusable most of the times.

Anonymous
Not applicable
Author

Hi,

can you please be a bit more specific?

Steps followed/screenshots? 

Thank you.