{ "timestamp": "2026-08-22 02:12:36.9677", "level": "Error", "severity": "ERROR", "TraceId": "ef93ae9b-4dbc-4db4-9abb-dae29bce0e31", "message": "[DateStamper] Exception occurred while processing file D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\attachments\\211\\inspections\\image_1787297529024_2026-08-22_02-12-36-1236_75a7be03-0007-44dd-8630-73bdfe8fa64e.jpeg: 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))\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)\r\n   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)\r\n   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)\r\n   at ImageMagick.Environment.NativeMethods.X64..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()\r\n   at ImageMagick.Environment.Initialize()\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()\r\n   at ImageMagick.MagickSettings..ctor()\r\n   at ImageMagick.MagickImage..ctor()\r\n   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", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/211/InspectionFileUpload","Route":"/Organisations/211/InspectionFileUpload","Query":"","Body":"*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***"} }
{ "timestamp": "2026-08-22 05:52:30.2331", "level": "Error", "severity": "ERROR", "TraceId": "c49a38dd-808f-411b-9174-4dc4eb879bf7", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisation/211/UserDetails","Route":"/Organisation/211/UserDetails","Query":"","Body":""} }
{ "timestamp": "2026-08-22 06:06:18.1216", "level": "Error", "severity": "ERROR", "TraceId": "96268011-b381-4d17-8087-4351d020508d", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Users/267/FieldStaffOrganisations/","Route":"/Users/267/FieldStaffOrganisations/","Query":"","Body":""} }
{ "timestamp": "2026-08-22 06:49:06.2863", "level": "Error", "severity": "ERROR", "TraceId": "3d0aad6a-5028-4477-9ab5-684ab7f52266", "message": "[DateStamper] Exception occurred while processing file D:\\App-Data\\iis\\api-qa-staging.oqsha.com\\api-qa-staging.oqsha.com\\attachments\\211\\inspections\\image_1787297529024_2026-08-22_06-49-06-496_bb781374-a1a4-4e2c-b808-2fb0977cb267.jpeg: 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))\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)\r\n   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)\r\n   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)\r\n   at ImageMagick.Environment.NativeMethods.X64..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()\r\n   at ImageMagick.Environment.Initialize()\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()\r\n   at ImageMagick.MagickSettings..ctor()\r\n   at ImageMagick.MagickImage..ctor()\r\n   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", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/211/InspectionFileUpload","Route":"/Organisations/211/InspectionFileUpload","Query":"","Body":"*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***"} }
{ "timestamp": "2026-08-22 14:47:50.7267", "level": "Error", "severity": "ERROR", "TraceId": "e746c198-1649-4789-805b-d2e4bdb3d6ce", "message": "Unhandled Exception in Web API", "stackTrace": "System.OperationCanceledException: The operation was canceled.\r\n   at System.Threading.CancellationToken.ThrowOperationCanceledException()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Countries","Route":"/Countries","Query":"","Body":""} }
{ "timestamp": "2026-08-22 18:03:26.5077", "level": "Error", "severity": "ERROR", "TraceId": "e26f24a0-73db-42ff-b5bf-001a3750eb9a", "message": "Response status code does not indicate success: 400 (BAD REQUEST).", "stackTrace": "System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (BAD REQUEST).\r\n   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()\r\n   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\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   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\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   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", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisation/264/Embed/GuestToken","Route":"/Organisation/264/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"4"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "e26f24a0-73db-42ff-b5bf-001a3750eb9a", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/264\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/264\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"4\"}}" }
