What to do if getting the error Error while copying content to a stream ?

Modified on Wed, 19 Feb at 2:12 PM

FIRST CREATED ON 25 Jun 2024  I  AUTHOR Emma Camacho


If you get this error, review the settings of the Virtual Proxy in Qlik Sense QMC that is configured in the Datasource properties.


Issue: 


An exception occurred when trying to connect to the given Qlik Sense instance.

ADDITIONAL INFORMATION

Error while copying content to a stream.

STACK TRACE

HttpRequestException: Error while copying content to a stream.

at MailAndDeploy.Server.ExtensionMethods.Await[T](Task pTask, TimeSpan pTimeout)

at MailAndDeploy.Server.Connectors.QlikSense.QsEoWConnector.PerformAuthentication(String pLoginUrl)

at MailAndDeploy.Server.Connectors.QlikSense.QsEoWConnector.EstablishRpcConnection(Uri pUri, JsonRpcCookie[] pCookies, JsonRpcHeader[] pHeaders)

at MailAndDeploy.Server.Connectors.QlikSense.QsEoWConnector.GetAppIdentifiers()

at MailAndDeploy.Server.Services.Management.Ui.QlikSenseServerAppDatasourceSheet.ReloadAppsDropDown()

at MailAndDeploy.Server.Services.Management.Ui.QlikSenseServerAppDatasourceSheet.GeneralPage_AppField_ButtonClicked(String pSender)

IOException: Unable to read data from the transport connection: The connection was closed.

at System.Net.ConnectStream.EndRead(IAsyncResult asyncResult)

at System.Net.Http.HttpClientHandler.WebExceptionWrapperStream.EndRead(IAsyncResult asyncResult)

at System.Net.Http.StreamToStreamCopy.BufferReadCallback(IAsyncResult ar)


Resolution:


Note the Datasource's Virtual Proxy Path property and then review the settings of the Virtual Proxy in Qlik Sense QMC of the noted Proxy.


In the following example: Central Proxy (Default)


In the following example: madwin


Following the Central Proxy (Default) example, make sure Windows is set in the Windows authentication pattern property:


Similarly, the madwin example, make sure Windows is set in the Windows authentication pattern property:



Looking for Additional Guidance?


If you require more detailed information or further assistance, please visit our comprehensive Online Documentation. Our resources are designed to help you navigate all features and functionalities effectively.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article