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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jamesphillips
Contributor
Contributor

Issue connecting using .Net API and Static Header

I'm trying to connect to a QAP server using the AsStaticHeaderUserViaProxy method in the .Net SDK and I'm getting a 'The handshake failed due to an unexpected packet format.'  error.

I'm using the example code from GitHub (https://github.com/AptkQlik/PublicExamples), version 13.18.0 of the SDK, and connecting to QAP April 2019 Patch 1.

Any ideas?

Labels (1)
1 Solution

Accepted Solutions
Øystein_Kolsrud
Employee
Employee

If I remember correctly you can get that type of error if you try to do an https connection to a http virtual proxy or vice versa. Have you set the "proxyUsesSsl" argument correctly? Default value is "true":

https://help.qlik.com/en-US/sense-developer/November2019/APIs/Net+SDK/html/M_Qlik_Sense_JsonRpc_Loca...

 

View solution in original post

2 Replies
Øystein_Kolsrud
Employee
Employee

If I remember correctly you can get that type of error if you try to do an https connection to a http virtual proxy or vice versa. Have you set the "proxyUsesSsl" argument correctly? Default value is "true":

https://help.qlik.com/en-US/sense-developer/November2019/APIs/Net+SDK/html/M_Qlik_Sense_JsonRpc_Loca...

 

jamesphillips
Contributor
Contributor
Author

That was the problem, thanks.