What to do if getting the following error: WebSocketException: Unable to connect to remote server - The remote server returned an error: (504) Gateway Timeout

What to do if getting the following error: WebSocketException: Unable to connect to remote server - The remote server returned an error: (504) Gateway Timeout


Issue

If getting the following error WebSocketException: Unable to connect to the remote server*

STACK TRACE

WebSocketException: Unable to connect to the remote server

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

at MailAndDeploy.Server.Json.Rpc.JsonRpcConnection..ctor(Uri pUri, JsonRpcCookie[] pCookies, JsonRpcHeader[] pHeaders)

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

at MailAndDeploy.Server.Connectors.QlikSense.QsSaasConnector.EstablishRpcConnection(String pAppId, String& pEngineSessionId)

at MailAndDeploy.Server.Connectors.QlikSense.Model.QsApp.EstablishRpcConnection()

at MailAndDeploy.Server.Connectors.QlikSense.Model.QsApp..ctor(QsConnector pConnector, String pAppId)

at MailAndDeploy.Server.Connectors.QlikSense.QsConnector.OpenApp(QlikSenseAppDatasource pDatasource, UserIdentity pIdentity)

at MailAndDeploy.Server.Persistency.Entities.Datasource.RebuildCache()

at MailAndDeploy.Server.Services.Management.Ui.DatasourcesSheet.ListPage_EntitiesTable_CellButtonClicked(String pSender, String pData)

WebException: The remote server returned an error: (504) Gateway Timeout.

at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at System.Net.WebSockets.ClientWebSocket.d__21.MoveNext()




Resolution

The temporary connection issues experienced with Mail & Deploy in the US region are likely caused by upstream incidents affecting AWS and Qlik Cloud services. Once these providers resolves their outages, Mail & Deploy connections and report executions should return to normal operation. 

You can track the current service statuses here:

- AWS Service Health Dashboard: https://health.aws.amazon.com/

- Qlik Cloud Status Page: https://status.qlikcloud.com/

If you continue to experience any disruptions after the AWS and Qlik Cloud status pages show all systems operational, please contact our support team for further investigation.




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.