Skip to main content

Official Support Articles

Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

Announcements
JAN. 24, Q&A with Qlik: Making the Move to Qlik Cloud Reporting: REGISTER NOW

net/http error: TLS handshake timeout during App Get request with Qlik-CLI

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

net/http error: TLS handshake timeout during App Get request with Qlik-CLI

A TLS handshake timeout is reached when running a simple App Get requests via Qlik-CLI. The same request via Invoke-WebRequest completes quickly and successfully.

PowerShell Script example with error:

$tenant = "xxxx.eu.qlikcloud.com"
$tenantId = 'xxxxxx'
$apikey = "STRIPPED"
qlik context update $tenant --api-key $apikey
qlik context use $tenant
qlik app get "xxxxxx" v#-----------------------------------------------------------------------------------
# CLI OUTPUT:
#------------------------------------------------------------------------------------
Context: xxxxx.qlikcloud.com
qlik : Server-type not set, guessing "cloud"
At line:7 char:1
+ qlik app get "xxxxxxx" -v
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{{ + CategoryInfo : NotSpecified: (Server-type not set, guessing "cloud":String) [], RemoteException}}
{{ + FullyQualifiedErrorId : NativeCommandError}}

GET xxxxxx
> Authorization: Bearer xxxxx
> Content-Type: application/json
> Referer: xxxxxx 
> User-Agent: qlik/2.8.0 (windows)
Error: Get "xxxxxxx": net/http: TLS handshake timeout

 

Resolution

Qlik-CLI doesn't pick up the Internet Proxy defined in Internet Options at the OS level, while PowerShell does.

To resolve this, set the https_proxy environment variable via PowerShell or at the OS level permanently to guarantee Qlik-CLI can connect to their tenant via the permitted path in their network setup.

Example:

Set the environment variable at beginning of the script:

$env:https_proxy="http://url.etc"

Remove the environment variable when done:

$env:https_proxy="http://url.etc"

 

Related Content 

Getting started with Qlik-CLI 

 

Environment

Qlik Cloud 
Qlik-CLI

 

Internal Investigation ID(s) 

QB-9096

Labels (1)
Version history
Last update:
‎2022-12-07 06:15 AM
Updated by: