Calling POST http://10.0.1.10:8004/recognize with groupPhoto: Files_d3f26a21-8b4b-4bfd-acf3-0597ed217ae7.jpg


Response StatusCode: BadRequest


Failed to recognize faces for imagePath: https://files.staging.oqsha.com\attachments\attendance\Files_d3f26a21-8b4b-4bfd-acf3-0597ed217ae7.jpg

System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at IncidentReporter.API.Helpers.FaceRecognitionHelper.<RecognizeFacesAsync>d__6.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\FaceRecognitionHelper.cs:line 77

*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***


FaceRecognitionResponse:


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


Received 1 files for face recognition in CaptureAttendanceByFaceRecognition.


Attachment saved to relative path: attachments\attendance\Files_d7ef0c15-181c-48c6-9528-164542498a29.jpg


Recognizing face from Uploaded photo. FullImagePath: https://files.staging.oqsha.com\attachments\attendance\Files_d7ef0c15-181c-48c6-9528-164542498a29.jpg


RecognizeFacesAsync called with imagePath: https://files.staging.oqsha.com\attachments\attendance\Files_d7ef0c15-181c-48c6-9528-164542498a29.jpg


Downloading remote file: https://files.staging.oqsha.com/attachments/attendance/Files_d7ef0c15-181c-48c6-9528-164542498a29.jpg


Downloaded 203949 bytes successfully from remote URL.


Calling POST http://10.0.1.10:8004/recognize with groupPhoto: Files_d7ef0c15-181c-48c6-9528-164542498a29.jpg


Response StatusCode: OK


Fetching oqsha user id from facemate user id: 46


Resolved OqshaUserId: 678


Fetched Organisation Ids for OqshaUserId 678: [3,123,159,198,251,252,253,259,260,264,265,266]


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


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


Attachment saved to relative path: attachments\attendance\Files_245ca987-f116-40c7-96cb-986a02f2d259.jpg


Recognizing face from Uploaded photo. FullImagePath: https://files.staging.oqsha.com\attachments\attendance\Files_245ca987-f116-40c7-96cb-986a02f2d259.jpg


RecognizeFacesAsync called with imagePath: https://files.staging.oqsha.com\attachments\attendance\Files_245ca987-f116-40c7-96cb-986a02f2d259.jpg


Downloading remote file: https://files.staging.oqsha.com/attachments/attendance/Files_245ca987-f116-40c7-96cb-986a02f2d259.jpg


Downloaded 162424 bytes successfully from remote URL.


Calling POST http://10.0.1.10:8004/recognize with groupPhoto: Files_245ca987-f116-40c7-96cb-986a02f2d259.jpg


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/198/Attendance/Configuration


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


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/logs/2025-10-07_exception.ndjson


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


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


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/AppVersions?DeviceType=ios&Version=6.6.0&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/AccessControl/Modules/264


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


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/123/Inspections/Feed?seeAllInspections=0&FromDate=2026-07-18&ToDate=2026-08-17


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/123/PermitToWork/All?SortingColumn=CreatedOn


Request Body : {"OrgId":123,"SiteId":[],"CompanyId":[],"TaskCategoryId":[],"TaskAssignee":[],"StatusId":[],"FromDate":"2026-07-18","ToDate":"2026-08-17","PriorityIds":[],"ShowReportedTask":false}


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


Request Body : {"SiteIds":[],"InitiatedBy":[],"DepartmentId":[],"MocTypeId":[],"MocStatusId":[],"FromDate":"2026-07-18","ToDate":"2026-08-17"}


Request Body : {"FromDate":"2026-07-18","ToDate":"2026-08-17","StatusIds":[],"AuditTypeIds":[],"SiteIds":[],"AuditorIds":[],"OrganisationId":123}


Request Body : {"FromDate":"2026-07-18","ToDate":"2026-08-17"}


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


Request Body : {"IsPublished":true,"UserId":"678","AcmModuleId":101}


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


Request Body : {}


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/logs/2025-10-02_log.ndjson


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/264/Modules/101/Categories/100092


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


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