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 10.0.1.10:5765
   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.DAL.Helpers.HttpRequestHelper.<SendRequestAsync>d__3.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Helpers\HttpRequestHelper.cs:line 97
--- 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.Handlers.EntityStateWorkflowHandler.<GetAvailableTransitionsAsync>d__5.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\EntityStateWorkflowHandler.cs:line 248
--- 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.BLL.OrganisationBLL.<GetEntityStateAvailableTransitionsAsync>d__97.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\OrganisationBLL.cs:line 16274


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


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


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


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


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


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


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


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


Request Body : {"CountryCode":"+91","MobileNumber":"20000018765"}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Courses/List


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/264/Users/Dropdown?&siteId=903&siteId=845&siteId=846


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/264/TrainingUsers?&siteId=903&siteId=845&siteId=846


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


Request Body : {"OrgId":[264],"PageNumber":1,"PageLimit":5000,"SortingColumn":["StartDate"],"SortingOrder":["asc"],"IsOnlineTraining":"","FromDate":"2026-06-01","ToDate":"2026-06-30","SiteId":[]}


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/WorkPermit/Categories


Request Body : {"UserId":267}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/WorkPermit/All


Audit log sent successfully.


Request Body : {"CountryCode":"+91","MobileNumber":"2000001875"}


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


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


Request URL : https://api-qa-staging-2.oqsha.com/AppVersions?DeviceType=ios&IsLatestVersion=true&IsOqsha=true


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


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


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/AccessControl/Modules/262


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


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


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


Request Body : {"OTP":"9999","MobileNumber":"2000001875","CountryCode":"+91","RememberMe":true,"IsOqsha":true}


Request URL : https://api-qa-staging-2.oqsha.com/Modules/Version/All?Appversion=6.6.0


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


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/123/TicketStatus/Counts


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


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


Request Body : {"OrgId":[264],"PageNumber":1,"PageLimit":10,"SortingColumn":["StartDate"],"SortingOrder":["desc"],"FromDate":"2026-04-01","ToDate":"2026-06-24","IsOnlineTraining":"","SiteId":[]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Batches/Summary


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/AppVersions?DeviceType=ios&IsLatestVersion=true&IsOqsha=true


Request Body : {"OrgId":[264],"PageNumber":1,"PageLimit":10,"SortingColumn":["StartDate"],"SortingOrder":["desc"],"FromDate":"2026-04-01","ToDate":"2027-01-01","IsOnlineTraining":"","SiteId":[]}


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


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


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


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


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


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


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


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


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


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


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/Organisations/262/Reports/Dashboards


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


Request URL : https://api-qa-staging-2.oqsha.com/Modules/Version/All?Appversion=6.6.0


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


Request URL : https://api-qa-staging-2.oqsha.com/AppVersions?DeviceType=ios&IsLatestVersion=true&IsOqsha=true


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/AppVersions?DeviceType=ios&Version=5.12.0&IsOqsha=true


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


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


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


Request Body : {"CountryCode":"+91","MobileNumber":"2000007341"}


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


Request Body : {"OTP":"9999","MobileNumber":"2000007341","CountryCode":"+91","RememberMe":true,"IsOqsha":true}


Request URL : https://api-qa-staging-2.oqsha.com/Modules/Version/All?Appversion=5.12.0


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


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


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/10/UserDetails


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/10/TicketStatus/Counts


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


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


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/Organisations/248/Users/5538


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/Investigation/Categories


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/IncidentManagement/Investigation/Statuses


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


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


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


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


Request Body : {}


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/Departments?SiteIds=708&SiteIds=744&SiteIds=707&SiteIds=899&SiteIds=705&SiteIds=709&SiteIds=706


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/IncidentManagement/Investigations


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/Departments?siteId=708&siteId=744&siteId=707&siteId=899&siteId=705&siteId=709&siteId=706


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/IncidentManagement/Categories


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/IncidentManagement/Statuses


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Incident Management&siteId=708&siteId=744&siteId=707&siteId=899&siteId=705&siteId=709&siteId=706&AcmModuleId=46


Request Body : {"SiteId":[708,744,707,899,705,709,706],"UserId":5538}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/Departments?siteId=708&siteId=744&siteId=707&siteId=705&siteId=709&siteId=706


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/10/TicketStatus/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/TrainingNeedIdentification/Dropdown


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Courses/List


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/TrainingNeedIdentification/92


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/264/TrainingUsers?&siteId=845


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/264/Users/Dropdown?&siteId=845


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Allocate-Attendees/Summary


Request Body : {"SiteIds":[845],"CourseIds":[285],"TrainingNeedIdentificationIds":[92],"BatchIds":[]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/152/Health/DropDown/Statuses


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/123/TicketStatus/Counts


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Departments?SortingColumn=Name&SortingOrder=Asc


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/264/Users/DropDown?&siteId=845


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Training/Participants


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Courses/320


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Courses/320/Batches/1786/Participants/19476/AnswerQuiz


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Contractors/All?isContractorListPage=true


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Courses/320/Batches/1786


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Courses/List


Request Body : {"OrgId":[264],"SiteIds":[],"isContractorListPage":true}


Request Body : {"OrgId":[264],"SiteIds":[845],"isContractorListPage":true}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/264/Users/Dropdown?&siteId=845&UserType=Employee&DepartmentId=265


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/264/TrainingUsers?&siteId=845


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/211/categories?pageNumber=1&pageLimit=10&sortingColumn=CreatedOn&sortingOrder=desc


Request URL : https://api-qa-staging-2.oqsha.com/Assets/AssetTypes?OrgId=211


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/211/category/960


Request Body : {"OrganisationId":211,"ModuleId":27,"EntityId":"960","EntityType":"TaskCategory"}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Courses/320/Batches/1786/ExportBatchParticipants


[BatchParticipantsPDF] Export started for Course: "Industrial Gas Safety - Contract Worker", Batch: "Industrial Gas Safety - Contract Worker - Batch-1", Participants: 14


[BatchParticipantsPDF] Organisation banner added


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


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


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


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


Request Body : {"PageNumber":0,"PageSize":0,"SiteId":[]}


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Health


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/211/Audit/Types


Request Body : {"orgid":211,"OrganisationId":211,"SearchTerm":"","SortingColumn":["ModifiedOn"],"SortingOrder":["desc"],"PageNumber":1,"PageSize":10,"SiteId":[]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/211/Audit/Types/42


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/211/Audit/Statuses


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


Request URL : https://api-qa-staging-2.oqsha.com/Trigger-Configs/Dropdowns


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


Request Body : {"OrganisationId":211,"ModuleId":38,"EntityId":42,"EntityType":"AuditType"}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/152/Health/DropDown/Statuses


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


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/WorkPermit/2864


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Work Permit&AcmModuleId=55


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/WorkPermit/2864/History


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/Departments?siteId=707


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/Users/Dropdown?departmentId=120


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/WorkPermit/Category/12?categoryType=Closure


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/WorkPermit/Category/1?categoryType=Extension


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/WorkPermit/ShiftTimings


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/248/WorkPermit/Categories


Request Body : {"SortingColumn":["CategoryName"],"SortingOrder":["asc"],"SiteId":[707],"UserId":"267"}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/Users/Dropdown?siteId=707&departmentId=120


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Work Permit&SiteId=707&AcmModuleId=55