Unhandled Exception in Web API

System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":29,"EntityId":267,"ChangedBy":{"UserId":267,"Name":"Goat Ravi Kishan"},"ChangeType":"Updated","OldValue":{"DisplayName":"Test ","WhatsappCountryCode":null,"WhatsappNumber":null,"MobileCountryCode":null,"MobileNumber":null,"EmployeeCode":null,"EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":null,"AdditionalQualifications":null,"Email":null,"UserUid":"TTK_Admin@oqsha.com","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Admin","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"},"NewValue":{"DisplayName":"Goat Ravi Kishan","WhatsappCountryCode":"+91","WhatsappNumber":"2000001875","MobileCountryCode":"+91","MobileNumber":"2000001875","EmployeeCode":"","EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":"","AdditionalQualifications":null,"Email":"moneyfollows@mybrother.com","UserUid":"TTK_Admin@oqsha.com","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Admin","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"}}
API Response:


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\users\goat_b09bde9f-19fe-4458-9a91-db104f51c30e.webp: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19

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


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":29,"EntityId":267,"ChangedBy":{"UserId":267,"Name":"Goat Ravi Kishan"},"ChangeType":"Updated","OldValue":{"DisplayName":"Goat Ravi Kishan","WhatsappCountryCode":"+91","WhatsappNumber":"2000001875","MobileCountryCode":"+91","MobileNumber":"2000001875","EmployeeCode":"","EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":"","AdditionalQualifications":null,"Email":"moneyfollows@mybrother.com","UserUid":"TTK_Admin@oqsha.com","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Admin","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"},"NewValue":{"DisplayName":"Goat Ravi Kishan","WhatsappCountryCode":"+91","WhatsappNumber":"2000001875","MobileCountryCode":"+91","MobileNumber":"2000001875","EmployeeCode":"","EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":"","AdditionalQualifications":null,"Email":"moneyfollows@mybrother.com","UserUid":"TTK_Admin@oqsha.com","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Admin","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"}}
API Response:


Unhandled Exception in Web API

System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


Unhandled Exception in Web API


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":23,"EntityId":78643,"ChangedBy":{"UserId":1778,"Name":"Randal Jessup"},"ChangeType":"Created","OldValue":null,"NewValue":{"Uid":"T/BEAT/NMM/26/00001","Status":null,"Site":"Robertsdale","UserType":null,"ReportedBy":"Conway Alt","Category":"Near Miss","Department":null,"AssignedTo":null,"Severity":"","DueDate":"","UsersInvolved":"1939,2552,10992","OthersInvolved":"","AssetsInvolved":"","IncidentDateTime":null,"Area":null}}
API Response:

Answer: testing


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":43,"EntityId":248,"ChangedBy":{"UserId":3,"Name":"Raj kumar"},"ChangeType":"Updated","OldValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations V2 IsVisible":0,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"PSSR IsVisible":1,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Training Courses V2 IsVisible":0,"Training register IsVisible":1,"Training Register V2 IsVisible":0,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0},"PtwPreferences":null},"NewValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Consequence Management IsVisible":0,"Contractor Lifecycle IsVisible":0,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Environment Management IsVisible":0,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Inventory IsVisible":0,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"Kiken Yochi Training IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations IsVisible":0,"Notifications IsVisible":1,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Pre Startup Safety Review IsVisible":0,"Precast IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"Projects IsVisible":0,"PSSR IsVisible":1,"Quality Management IsVisible":0,"r6 IsVisible":0,"Reports IsVisible":0,"Reports V2 IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Sections IsVisible":0,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Toolbox Talk IsVisible":0,"Training register IsVisible":1,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0,"Zones IsVisible":0},"PtwPreferences":null}}
API Response:


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":1,"EntityId":16711,"ChangedBy":{"UserId":267,"Name":"Goat Ravi Kishan"},"ChangeType":"Created","OldValue":null,"NewValue":{"SiteName":"Colver","CompanyName":null,"TaskCategory":"3rd Party Risk Assessment","TaskDescription":"","TaskStatus":"Open","DueDate":"24-Aug-2026","TaskRemainder":null,"Priority":"Low","TaskAssignees":"Aden"}}
API Response:

Answer: test

Answer: testing


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":1,"EntityId":16710,"ChangedBy":{"UserId":267,"Name":"Goat Ravi Kishan"},"ChangeType":"Created","OldValue":null,"NewValue":{"SiteName":null,"CompanyName":null,"TaskCategory":null,"TaskDescription":null,"TaskStatus":null,"DueDate":"","TaskRemainder":null,"Priority":null,"TaskAssignees":null}}
API Response:

Answer: test

Answer: testing


MySql.Data.MySqlClient.MySqlException (0x80004005): Cannot add or update a child row: a foreign key constraint fails (`qa_stg_oqsha`.`user_history`, CONSTRAINT `user_history_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE)
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- 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 Dapper.SqlMapper.<ExecuteImplAsync>d__39.MoveNext()
--- 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.DAL.Repositories.VersionsRepo.<InsertUserHistoryAsync>d__9.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\VersionsRepo.cs:line 201
--- 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.VersionsBLL.<GetAllModuleVersions>d__6.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\VersionsBLL.cs:line 69


System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (BAD REQUEST).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at IncidentReporter.API.Helpers.SupersetClient.<PostGuestTokenAsync>d__15.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 95
--- 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.SupersetClient.<MintGuestTokenAsync>d__14.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 71
--- 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.EmbedBll.<GetGuestTokenAsync>d__5.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmbedBll.cs:line 120


Unhandled Exception in Web API

System.InvalidOperationException: The given header was not found.
   at System.Net.Http.Headers.HttpHeaders.GetValues(String name)
   at IncidentReporter.API.Handlers.AcmAuthorise.GetToken(HttpActionContext actionContext) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\AcmAuthorise.cs:line 214
   at IncidentReporter.API.Handlers.AcmAuthorise.OnActionExecuting(HttpActionContext actionContext) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\AcmAuthorise.cs:line 37
   at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutingAsync(HttpActionContext actionContext, CancellationToken cancellationToken)
--- 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 System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- 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 System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- 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 System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- 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 System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- 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 System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":1,"EntityId":16713,"ChangedBy":{"UserId":1955,"Name":"Renard Whatley"},"ChangeType":"Created","OldValue":null,"NewValue":{"SiteName":"Alanreed","CompanyName":null,"TaskCategory":"Site Visit","TaskDescription":"hj","TaskStatus":"Open","DueDate":"24-Aug-2026","TaskRemainder":null,"Priority":"Low","TaskAssignees":null}}
API Response:


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":1,"EntityId":16712,"ChangedBy":{"UserId":1955,"Name":"Renard Whatley"},"ChangeType":"Created","OldValue":null,"NewValue":{"SiteName":null,"CompanyName":null,"TaskCategory":null,"TaskDescription":null,"TaskStatus":null,"DueDate":"","TaskRemainder":null,"Priority":null,"TaskAssignees":null}}
API Response:


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":1,"EntityId":16715,"ChangedBy":{"UserId":1955,"Name":"Renard Whatley"},"ChangeType":"Created","OldValue":null,"NewValue":{"SiteName":"Bowers","CompanyName":null,"TaskCategory":"Site Visit","TaskDescription":"hj","TaskStatus":"Open","DueDate":"24-Aug-2026","TaskRemainder":null,"Priority":"Low","TaskAssignees":null}}
API Response:


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":1,"EntityId":16714,"ChangedBy":{"UserId":1955,"Name":"Renard Whatley"},"ChangeType":"Created","OldValue":null,"NewValue":{"SiteName":null,"CompanyName":null,"TaskCategory":null,"TaskDescription":null,"TaskStatus":null,"DueDate":"","TaskRemainder":null,"Priority":null,"TaskAssignees":null}}
API Response:


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":23,"EntityId":78643,"ChangedBy":{"UserId":1778,"Name":"Randal Jessup"},"ChangeType":"Updated","OldValue":{"Uid":"T/BEAT/NMM/26/00001","Status":null,"Site":"Robertsdale","UserType":null,"ReportedBy":"Conway Alt","Category":"Near Miss","Department":null,"AssignedTo":"","Severity":"","DueDate":"","UsersInvolved":"","OthersInvolved":"","AssetsInvolved":"","IncidentDateTime":null,"Area":null},"NewValue":{"Uid":"T/BEAT/NMM/26/00001","Status":null,"Site":"Robertsdale","UserType":null,"ReportedBy":"Conway Alt","Category":"Near Miss","Department":null,"AssignedTo":"Addisyn Papp","Severity":"","DueDate":"24-Aug-2026","UsersInvolved":null,"OthersInvolved":"","AssetsInvolved":"","IncidentDateTime":null,"Area":null}}
API Response:


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\204\incidents\images_df72d289-c46d-47d8-ae0a-98272a36c4cf.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":23,"EntityId":78643,"ChangedBy":{"UserId":1778,"Name":"Randal Jessup"},"ChangeType":"Updated","OldValue":{"Uid":"T/BEAT/NMM/26/00001","Status":null,"Site":"Robertsdale","UserType":null,"ReportedBy":"Conway Alt","Category":"Near Miss","Department":null,"AssignedTo":"Addisyn Papp","Severity":"","DueDate":"24-Aug-2026","UsersInvolved":"","OthersInvolved":"","AssetsInvolved":"","IncidentDateTime":null,"Area":null},"NewValue":{"Uid":"T/BEAT/NMM/26/00001","Status":null,"Site":"Robertsdale","UserType":null,"ReportedBy":"Conway Alt","Category":"Near Miss","Department":null,"AssignedTo":"Addisyn Papp","Severity":"","DueDate":"24-Aug-2026","UsersInvolved":null,"OthersInvolved":"","AssetsInvolved":"","IncidentDateTime":null,"Area":null}}
API Response:


Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (*).
   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)


Unhandled Exception in Web Application


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":29,"EntityId":267,"ChangedBy":{"UserId":267,"Name":"Ravi Kishan"},"ChangeType":"Updated","OldValue":{"DisplayName":"Ravi ","WhatsappCountryCode":null,"WhatsappNumber":null,"MobileCountryCode":null,"MobileNumber":null,"EmployeeCode":null,"EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":null,"AdditionalQualifications":null,"Email":null,"UserUid":"TTK_Admin@oqsha.com","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Admin","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"},"NewValue":{"DisplayName":"Ravi Kishan","WhatsappCountryCode":"","WhatsappNumber":"","MobileCountryCode":null,"MobileNumber":"","EmployeeCode":"","EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":"","AdditionalQualifications":null,"Email":"moneyfollows@mybrother.com","UserUid":"TTK_Admin@oqsha.com","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Safety Officer","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"}}
API Response:


Error occurred while Whatsapp message.

System.Exception: Error occurred while Whatsapp message. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.GetResponse()
   at IncidentReporter.API.BLL.UsersBLL.SendMessage(String apiBody) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 261
   --- End of inner exception stack trace ---


Error occurred while Whatsapp message.


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":29,"EntityId":267,"ChangedBy":{"UserId":267,"Name":"Ravi Kishan"},"ChangeType":"Updated","OldValue":{"DisplayName":"Ravi Kishan","WhatsappCountryCode":"","WhatsappNumber":"","MobileCountryCode":null,"MobileNumber":"","EmployeeCode":"","EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":"","AdditionalQualifications":null,"Email":"moneyfollows@mybrother.com","UserUid":"TTK_Admin@oqsha.com","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Safety Officer","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"},"NewValue":{"DisplayName":"Ravi Kishan","WhatsappCountryCode":"","WhatsappNumber":"","MobileCountryCode":null,"MobileNumber":"","EmployeeCode":"","EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":"","AdditionalQualifications":null,"Email":"TTK_Admin@oqsha.com","UserUid":"TTK_Admin@oqsha.com","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Safety Officer","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"}}
API Response:


Failed to send audit log: InternalServerError
Request Payload: {"EntityTypeId":29,"EntityId":267,"ChangedBy":{"UserId":267,"Name":"Ravi Kishan"},"ChangeType":"Updated","OldValue":{"DisplayName":"Ravi Kishan","WhatsappCountryCode":"","WhatsappNumber":"","MobileCountryCode":null,"MobileNumber":"","EmployeeCode":"","EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":"","AdditionalQualifications":null,"Email":"TTK_Admin@oqsha.com","UserUid":"TTK_Admin@oqsha.com","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Safety Officer","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"},"NewValue":{"DisplayName":"Ravi Kishan","WhatsappCountryCode":"","WhatsappNumber":"","MobileCountryCode":null,"MobileNumber":"","EmployeeCode":"","EmployeeType":"Employee","ContractStartedOn":"","ContractEndsOn":"","CompanyName":"SailPoint Inc.","Department":"","DateOfJoining":"","DateOfBirth":null,"ReportingManager":null,"EmergencyContactName":"","EmergencyContactNumber":"","Address":"","AdditionalQualifications":null,"Email":"TTK_Admin@oqsha.com","UserUid":"TTK_Admin","ShowAllTickets":"No","SeeAllPtw":"No","ReceiveAllPtwNotifications":"No","ExemptFromGeofencing":"No","ViewAllInspections":"No","ReceiveAttendanceNotification":"No","Sites":"Bell Buckle, Belleair, Clint, Cold Spring, Huetter, Nyack, Shorewood-Tower Hills-Harbert, South Plainfield, Stansbury Park, Williams Canyon","Role":"Safety Officer","PtwRole":"","TypeOfPermits":"","AssetTypes":"Default","IsUserActive":"Active"}}
API Response: