Skip to main content

Cannot Connect to QRS API with Postman via Virtual Proxy Windows Authentication in April 2018, "Could not get any response"

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

Cannot Connect to QRS API with Postman via Virtual Proxy Windows Authentication in April 2018, "Could not get any response"

Last Update:

Jun 1, 2021 3:15:04 PM

Updated By:

Andre_Sostizzo

Created date:

Jun 18, 2018 3:26:17 AM


When trying to connect to the QRS API with Postman via Windows Authentication, Postman responds with "Could not get any response"

Environments:

 

Resolution:


Prior to April 2018 Release:
Verify in Postman > Settings that SSL Certificate verification is disabled.

April 2018 release and higher:
In the April 2018 release, port redirection for authentication was disabled in favor of path-based redirects. For not-yet-known reasons, this has been problematic in Postman for NTLM authentication in particular (but not other rest clients/utilities, such as Invoke-RestMethod in Powershell). If you want to use Postman then a workaround is:

  1. Disable auto-follow of redirects.
  2. Make the initial request, Qlik Sense responds with an HTTP 302 and Location header.
  3. Re-enable auto-follow of redirects, and execute request at the URL in the Location header.
  4. You should now have the NTLM session cookie**, proceed with API requests as usual. 

Alternatively, locate the following line in both repository.exe and also proxy.exe, change the value to false, and restart all services; this re-enables port redirection for Windows authentication requests:

<add key="DisableAuthenticationPortRedirection" value="true" />


**There is an open issue related to Postman not automatically setting secure cookies in the latest stable release 6.1.3. This is fixed in the Canary (development) release, 6.2.0, or you can set cookies manually. 

Labels (2)
Contributors
Version history
Last update:
‎2021-06-01 03:15 PM
Updated by: