diff --git a/Site/Automation/UploadFileHandler.ashx b/Site/Automation/UploadFileHandler.ashx index c8066858..a681563d 100644 --- a/Site/Automation/UploadFileHandler.ashx +++ b/Site/Automation/UploadFileHandler.ashx @@ -379,11 +379,20 @@ namespace Swarmops.Frontend.Automation debugWriter.WriteLine("Creating socket for backend job. nPdfs: " + pdfsForConversion.Count); debugWriter.Flush(); + debugWriter.WriteLine(" - Websocket frontend port: " + SystemSettings.WebsocketPortFrontend); + debugWriter.Flush(); + + debugWriter.WriteLine(" - authData.Authority is " + (authData.Authority == null? "null" : "not null")); + debugWriter.Flush(); + using ( WebSocket socket = new WebSocket("ws://localhost:" + SystemSettings.WebsocketPortFrontend + "/Front?Auth=" + Uri.EscapeDataString(authData.Authority.ToEncryptedXml()))) { + debugWriter.WriteLine(" - socket is " + (authData.Authority == null? "NULL!?" : "not null")); + debugWriter.Flush(); + socket.Connect(); debugWriter.WriteLine(" - connected");