System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 148.113.6.198:8434
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.Helpers.JsReportUtils.<RenderPdfAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\JsReportUtils.cs:line 59
--- 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 IncidentReporter.API.Helpers.PdfExportSwitchHelper.<TryRenderPdfViaJsReportAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\PdfExportSwitchHelper.cs:line 64


Request URL : https://api-qa-staging-2.oqsha.com/Resources/eng?orgId=262


Request URL : https://api-qa-staging-2.oqsha.com/AccessControl/Modules/262


Request URL : https://api-qa-staging-2.oqsha.com/Health


Request URL : https://api-qa-staging-2.oqsha.com/Resources/package-features-eng


Request URL : https://api-qa-staging-2.oqsha.com/Resources/eng?orgId=204


Request URL : https://api-qa-staging-2.oqsha.com/Resources/eng


Request URL : https://api-qa-staging-2.oqsha.com/AccessControl/Modules/204


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/204/Users/1778


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/204


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/204/IncidentStatuses


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/204/Company/All?&IsActive=1


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/204/Users/DropDown?ModuleName=Tickets&SiteId=508&AcmModuleId=12


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/204/Modules


Request URL : https://api-qa-staging-2.oqsha.com/Languages


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/204/PendingActionsNotifications


Request URL : https://api-qa-staging-2.oqsha.com/Incidents


Request Body : {"OrgId":[204],"PageNumber":1,"PageLimit":1,"StartDate":"2026-08-05","EndDate":"2026-08-05","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/204/Divisions/List


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/204/Divisions?userId=1778&userTypeId=1


Request URL : https://api-qa-staging-2.oqsha.com/Dashboard/Organisations/204/SideMenu


Request Body : {"OrgId":[204],"SiteId":[],"UserId":1778,"SearchTerm":""}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/204/Reports/Dashboards


Application started


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/204/AccessControl/Roles


Request URL : https://api-qa-staging-2.oqsha.com/Users


Request Body : {"OrgId":[204],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":""}


Request Body : {"OrgId":[204],"PageNumber":1,"PageLimit":100,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":""}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Users/267


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/262/OrganisationStats?FromDate=2026-08-05&ToDate=2026-08-05&


Request URL : https://api-qa-staging-2.oqsha.com/Reports/IncidentCountReport?OrgId=262&StartDate=2026-08-05&EndDate=2026-08-05


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Divisions/Dropdown


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/262/OrganisationStats?FromDate=2026-07-29&ToDate=2026-08-05&


Request URL : https://api-qa-staging-2.oqsha.com/Reports/IncidentStatusReport?OrgId=262&FromDate=2026-07-29&ToDate=2026-08-05&DivisionId=1712&DivisionId=1715


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/262/Modules


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/PendingActionsNotifications


Request URL : https://api-qa-staging-2.oqsha.com/Languages


Request URL : https://api-qa-staging-2.oqsha.com/Reports/IncidentCountReport?OrgId=262&StartDate=2026-07-29&EndDate=2026-08-05&DivisionId=1712&DivisionId=1715


Request URL : https://api-qa-staging-2.oqsha.com/AccessControl/Modules/262


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/EscalatedIncidents


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/IncidentStatuses


Request URL : https://api-qa-staging-2.oqsha.com/Dashboard/Organisations/262/SideMenu


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Training/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/TaskCategories/Dropdown


Request Body : {"SiteIds":[881,883,886,884,841,888,887,882,889,885],"FromDate":"2026-04-01","ToDate":"2026-08-05"}


Request Body : {"SiteId":[881,883,886,884,841,888,887,882,889,885],"UserId":267}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Incidents/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Tasks/List/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/KPI/PlantMaster/Sites/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/IncidentManagement/Firs/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/PermitToWork/All/Sites/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Courses/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/ManagementOfChangeList/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Inspections/Counts


Request Body : {"SiteIds":[881,883,886,884,841,888,887,882,889,885],"FromDate":"2026-04-01","ToDate":"2026-08-05","CategoryId":[1712,1715]}


Request Body : {"SiteIds":[881,883,886,884,841,888,887,882,889,885],"FromDate":"2026-04-01","ToDate":"2026-08-05","CategoryId":[]}


Request Body : {"SiteIds":[881,883,886,884,841,888,887,882,889,885]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Reports/Dashboards


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/WorkPermit/Statuses


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/JsReportTemplates/Search


Request Body : {"Status":"Active"}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/AuditV2/7/Export