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.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.Http.HttpClientHandler.GetResponseCallback(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.<GetStateTypesAsync>d__7.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\EntityStateWorkflowHandler.cs:line 326
--- 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.WorkflowsBll.<GetStateTypesAsync>d__2.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkflowsBll.cs:line 26


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Modules/83/Categories/All


Request Body : {"SiteIds":[],"PageNumber":1,"PageLimit":1000,"UserId":267}


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/262/Modules/83/Workflows/States/Types


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


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


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


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/Users/DropDown?ModuleName=WORK_PERMIT&siteId=708&categoryIds=13


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Departments?SiteIds=845


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


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


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


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


Request Body : {"SiteIds":[],"WorkPermitTypeId":[],"DepartmentId":[],"WorkPermitStatusId":[],"FromDate":"2026-05-25","ToDate":"2026-06-25","Live":false,"Pending":false,"InitiatedBy":[]}


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


Request URL : https://api-qa-staging-2.oqsha.com/Users/6717/ExportAll?Export=true


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


Request Body : {}


JTI 19454bcc-a9d8-4409-a1bf-6a72c5670884 for userId = 6717 is saved to database.


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


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


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


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


An error occurred while sending the request.


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


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


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


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


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


Request Body : {"orgId":262,"SiteId":[],"UserId":267}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Modules/89/Workflows/States/Types


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Modules/89/Categories/All


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


Request Body : {"SiteIds":[881,883,886,884,841,902,888,887,882,889,885],"PageNumber":1,"PageLimit":1000,"UserId":267}


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Modules/103/Workflows/States/Types


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Modules/103/Categories/All


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


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.2


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


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


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


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


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


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


Calling RegisterWithSNS for registering the device token : djD0-RxYRGeuedseexgrcd:APA91bF30KjyStbApx_zDXhZHjqx8q310ZvsJ_aOc_ERLcMJiEzKSHlDovZaUKPpQ81GxQ0p048u8Ct27AiQ4CZiljdLxLi-VFIqBkUp3EOEvJsGC8FdwfQ


Device Endpoint Created : arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/77e5972e-b907-3d20-8d92-831c6745a6c2


Device Endpoint Subscribed : arn:aws:sns:ap-south-1:637423593880:bundle-stg:cee43fe5-273c-4a3a-89ff-808af9cb7caf


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


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


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


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


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


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Users/267/Organisations?onlyFieldStaff=true


Request URL : https://api-qa-staging-2.oqsha.com/User/267/Preferences


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/123/Inspections/Feed?seeAllInspections=0&FromDate=2026-05-25&ToDate=2026-06-24


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/123/RiskAssessment/All


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/123/Audits/All


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/123/PermitToWork/All?SortingColumn=CreatedOn&FromDate=2026-05-25&ToDate=2026-06-24


Request Body : {"orgId":123,"SiteIds":[],"DepartmentId":[],"RiskAssessmentTypeId":[],"RiskAssessmentStatusId":[],"IsLatest":false}


Request Body : {"SiteIds":[],"InitiatedBy":[],"DepartmentId":[],"MocTypeId":[],"MocStatusId":[],"FromDate":"2026-05-25","ToDate":"2026-06-24"}


Request Body : {"OrgId":123,"SiteId":[],"CompanyId":[],"TaskCategoryId":[],"TaskAssignee":[],"StatusId":[],"FromDate":"2026-05-25","ToDate":"2026-06-24","PriorityIds":[],"ShowReportedTask":false}


Request Body : {"FromDate":"2026-05-25","ToDate":"2026-06-24","StatusIds":[],"AuditTypeIds":[],"SiteIds":[],"AuditorIds":[],"OrganisationId":123}


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


An error occurred while sending the request.


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


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


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


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


Request Body : {"SiteIds":[],"WorkPermitTypeId":[],"DepartmentId":[],"WorkPermitStatusId":[],"FromDate":"2026-05-25","ToDate":"2026-06-25","Live":false,"Pending":false,"InitiatedBy":[]}


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


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


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


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/2861


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


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/Categories


Request Body : {"UserId":267}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Work Permit&siteId=708&categoryIds=13


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/Users/DropDown?ModuleName=WORK_PERMIT&siteId=708&categoryIds=13


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Modules/103/Categories/All


Request Body : {"SiteIds":[881],"PageNumber":1,"PageLimit":1000,"UserId":267}


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


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


Request Body : {"SiteId":[881],"SearchTerm":"","SortingColumn":["Name"],"SortingOrder":["asc"],"PageNumber":1,"PageSize":1000}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/Modules/103/Workflows/Transitions/Available