{ "timestamp": "2026-08-27 05:03:10.2944", "level": "Error", "severity": "ERROR", "TraceId": "cdd0033d-a191-4bea-a8bb-6b44973e2598", "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/256/Embed/GuestToken","Route":"/Organisation/256/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"1"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "cdd0033d-a191-4bea-a8bb-6b44973e2598", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/256\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/256\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"1\"}}" }
{ "timestamp": "2026-08-27 05:42:43.3420", "level": "Error", "severity": "ERROR", "TraceId": "790a91b2-eafc-4213-96d9-b237cf238908", "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/256/Embed/GuestToken","Route":"/Organisation/256/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"1"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "790a91b2-eafc-4213-96d9-b237cf238908", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/256\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/256\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"1\"}}" }
{ "timestamp": "2026-08-27 06:14:50.8610", "level": "Error", "severity": "ERROR", "TraceId": "4c1f975d-a506-4c34-aa5f-0a5ed4b0ef70", "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/3826/Organisations/","Route":"/Users/3826/Organisations/","Query":"","Body":""} }
{ "timestamp": "2026-08-27 06:19:59.0086", "level": "Error", "severity": "ERROR", "TraceId": "ab9ae88f-025c-4898-af68-0dc273d7de84", "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/6606/FieldStaffOrganisations/","Route":"/Users/6606/FieldStaffOrganisations/","Query":"","Body":""} }
{ "timestamp": "2026-08-27 06:26:47.5386", "level": "Error", "severity": "ERROR", "TraceId": "f8cec04a-eb72-44fc-8f20-85c6832f9489", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "f8cec04a-eb72-44fc-8f20-85c6832f9489", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 06:50:58.1608", "level": "Error", "severity": "ERROR", "TraceId": "957402ba-bfea-4f33-a923-13752877569c", "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/Organisations/262/Reports/Dashboards","Route":"/Organisations/262/Reports/Dashboards","Query":"","Body":""} }
{ "timestamp": "2026-08-27 06:51:00.8721", "level": "Error", "severity": "ERROR", "TraceId": "50509256-835f-47e5-9ec1-802ac50aaae0", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "50509256-835f-47e5-9ec1-802ac50aaae0", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 07:34:15.9110", "level": "Error", "severity": "ERROR", "TraceId": "0ee176ab-ac11-4cae-8889-1e8e86c553fa", "message": "Nullable object must have a value.", "stackTrace": "System.InvalidOperationException: Nullable object must have a value.\r\n   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)\r\n   at IncidentReporter.API.BLL.PtwBLL.<GetWorkPermitDetailsByPermitId>d__13.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 0", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429066?extensionRequestedDate=2026-08-27","Route":"/Organisations/207/PermitToWork/429066","Query":"?extensionRequestedDate=2026-08-27","Body":""}, "MethodName": "GetWorkPermitDetailsByPermitId", "EntryPoint": "API", "InputData": null, "TraceId": "0ee176ab-ac11-4cae-8889-1e8e86c553fa", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429066?extensionRequestedDate=2026-08-27\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429066\",\"Query\":\"?extensionRequestedDate=2026-08-27\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 07:34:24.0068", "level": "Error", "severity": "ERROR", "TraceId": "8de3f9fd-e283-4a22-9d0b-4924577d779a", "message": "Nullable object must have a value.", "stackTrace": "System.InvalidOperationException: Nullable object must have a value.\r\n   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 0", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429066?Export=true","Route":"/Organisations/207/PermitToWork/429066","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "8de3f9fd-e283-4a22-9d0b-4924577d779a", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429066?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429066\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 07:34:43.0972", "level": "Error", "severity": "ERROR", "TraceId": "b715d026-cd5b-4300-aa91-e786c3e2bbd8", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "b715d026-cd5b-4300-aa91-e786c3e2bbd8", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 07:34:45.1969", "level": "Error", "severity": "ERROR", "TraceId": "d9ce98b1-179d-4290-a090-832b47537fbf", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "d9ce98b1-179d-4290-a090-832b47537fbf", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 07:34:45.9445", "level": "Error", "severity": "ERROR", "TraceId": "824c4142-ee28-4786-936f-0f7e21d43303", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "824c4142-ee28-4786-936f-0f7e21d43303", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 09:58:14.5831", "level": "Error", "severity": "ERROR", "TraceId": "3aeace85-3371-4c9e-a392-a3cc638c1603", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "3aeace85-3371-4c9e-a392-a3cc638c1603", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 09:58:17.8876", "level": "Error", "severity": "ERROR", "TraceId": "f13d5c33-1676-4c43-8240-f1417e102323", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "f13d5c33-1676-4c43-8240-f1417e102323", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 09:58:18.3491", "level": "Error", "severity": "ERROR", "TraceId": "e829167e-fb6b-4362-918e-e2c7c1afd870", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "e829167e-fb6b-4362-918e-e2c7c1afd870", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 09:58:23.8976", "level": "Error", "severity": "ERROR", "TraceId": "357215bd-00dc-41ce-9b08-56359577d7a4", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "357215bd-00dc-41ce-9b08-56359577d7a4", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 10:51:12.1040", "level": "Error", "severity": "ERROR", "TraceId": "72f93549-5d92-4a88-9e8c-72971c9b2569", "message": "Nullable object must have a value.", "stackTrace": "System.InvalidOperationException: Nullable object must have a value.\r\n   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)\r\n   at IncidentReporter.API.BLL.PtwBLL.<GetWorkPermitDetailsByPermitId>d__13.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 0", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/211/PermitToWork/439259?extensionRequestedDate=2026-08-27","Route":"/Organisations/211/PermitToWork/439259","Query":"?extensionRequestedDate=2026-08-27","Body":""}, "MethodName": "GetWorkPermitDetailsByPermitId", "EntryPoint": "API", "InputData": null, "TraceId": "72f93549-5d92-4a88-9e8c-72971c9b2569", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/211\/PermitToWork\/439259?extensionRequestedDate=2026-08-27\",\"Route\":\"\/Organisations\/211\/PermitToWork\/439259\",\"Query\":\"?extensionRequestedDate=2026-08-27\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 11:17:45.3377", "level": "Error", "severity": "ERROR", "TraceId": "f8bcc029-dd11-4a21-a2b8-6ed7aa504917", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "f8bcc029-dd11-4a21-a2b8-6ed7aa504917", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 11:20:02.5992", "level": "Error", "severity": "ERROR", "TraceId": "ca7c8abc-8800-4845-a158-1ed107c8777c", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "ca7c8abc-8800-4845-a158-1ed107c8777c", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 11:42:27.3032", "level": "Error", "severity": "ERROR", "TraceId": "338c54bf-76db-48cd-b099-b206e531e796", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "338c54bf-76db-48cd-b099-b206e531e796", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 11:44:55.2416", "level": "Error", "severity": "ERROR", "TraceId": "54ba2749-febb-45ef-a2fc-f9e253d2761b", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "54ba2749-febb-45ef-a2fc-f9e253d2761b", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 11:49:26.8863", "level": "Error", "severity": "ERROR", "TraceId": "3fc6535c-be0b-4345-9e5d-cddaf0ddd07d", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "3fc6535c-be0b-4345-9e5d-cddaf0ddd07d", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 12:03:52.1440", "level": "Error", "severity": "ERROR", "TraceId": "468cdf98-4f11-4b9c-aca9-194a96d8f898", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "468cdf98-4f11-4b9c-aca9-194a96d8f898", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 12:07:31.6553", "level": "Error", "severity": "ERROR", "message": "Unhandled Exception in Web Application", "stackTrace": "System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).\r\n   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()\r\n   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)" }
{ "timestamp": "2026-08-27 12:07:46.9282", "level": "Error", "severity": "ERROR", "message": "Unhandled Exception in Web Application", "stackTrace": "System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).\r\n   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()\r\n   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)" }
{ "timestamp": "2026-08-27 12:07:51.1269", "level": "Error", "severity": "ERROR", "message": "Unhandled Exception in Web Application", "stackTrace": "System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).\r\n   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()\r\n   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)" }
{ "timestamp": "2026-08-27 12:07:51.1269", "level": "Error", "severity": "ERROR", "message": "Unhandled Exception in Web Application", "stackTrace": "System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).\r\n   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()\r\n   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)" }
{ "timestamp": "2026-08-27 12:09:48.8502", "level": "Error", "severity": "ERROR", "message": "Unhandled Exception in Web Application", "stackTrace": "System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).\r\n   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()\r\n   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)" }
{ "timestamp": "2026-08-27 12:09:50.8145", "level": "Error", "severity": "ERROR", "message": "Unhandled Exception in Web Application", "stackTrace": "System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).\r\n   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()\r\n   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)" }
{ "timestamp": "2026-08-27 12:09:50.8145", "level": "Error", "severity": "ERROR", "message": "Unhandled Exception in Web Application", "stackTrace": "System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).\r\n   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()\r\n   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)" }
{ "timestamp": "2026-08-27 12:11:58.3357", "level": "Error", "severity": "ERROR", "message": "Unhandled Exception in Web Application", "stackTrace": "System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).\r\n   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()\r\n   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)" }
{ "timestamp": "2026-08-27 12:13:15.5563", "level": "Error", "severity": "ERROR", "TraceId": "96b2fd1a-b629-4d16-979a-7588391b200e", "message": "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)", "stackTrace": "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)\r\n   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()\r\n   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)\r\n   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()\r\n   at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)\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 Dapper.SqlMapper.<ExecuteImplAsync>d__39.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.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   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\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.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", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Modules/Version/All?Appversion=7.9.0","Route":"/Modules/Version/All","Query":"?Appversion=7.9.0","Body":""}, "MethodName": "GetAllModuleVersions", "EntryPoint": "API", "InputData": null, "TraceId": "96b2fd1a-b629-4d16-979a-7588391b200e", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Modules\/Version\/All?Appversion=7.9.0\",\"Route\":\"\/Modules\/Version\/All\",\"Query\":\"?Appversion=7.9.0\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 12:26:18.3453", "level": "Error", "severity": "ERROR", "TraceId": "4ced1710-54fe-46a8-8740-d70bf8ad3a67", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/204/PermitToWork/429076?Export=true","Route":"/Organisations/204/PermitToWork/429076","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "4ced1710-54fe-46a8-8740-d70bf8ad3a67", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/204\/PermitToWork\/429076?Export=true\",\"Route\":\"\/Organisations\/204\/PermitToWork\/429076\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 12:37:54.0167", "level": "Error", "severity": "ERROR", "TraceId": "7c857f45-7141-495d-9607-7985a7be4948", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "7c857f45-7141-495d-9607-7985a7be4948", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 12:41:19.5183", "level": "Error", "severity": "ERROR", "TraceId": "d335b718-a3eb-4f1b-a492-ebcfb769bc8e", "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/Dashboard/Organisations/255/SideMenu","Route":"/Dashboard/Organisations/255/SideMenu","Query":"","Body":""} }
{ "timestamp": "2026-08-27 12:42:23.8439", "level": "Error", "severity": "ERROR", "TraceId": "37adc93f-1c81-4f7a-b6ef-76259ecd662c", "message": "User details not found for the given user and organisation.", "stackTrace": "System.Exception: User details not found for the given user and organisation.", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/255/Users/0","Route":"/Organisations/255/Users/0","Query":"","Body":""}, "MethodName": "GetUserOrganisation", "EntryPoint": "API", "InputData": null, "TraceId": "37adc93f-1c81-4f7a-b6ef-76259ecd662c", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/255\/Users\/0\",\"Route\":\"\/Organisations\/255\/Users\/0\",\"Query\":\"\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 12:42:36.8302", "level": "Error", "severity": "ERROR", "TraceId": "b0a2eb8e-6950-4f06-b644-ccc866730271", "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/262/Embed/GuestToken","Route":"/Organisation/262/Embed/GuestToken","Query":"","Body":{"resourceType":"master_dashboard","resourceUuid":"3"}}, "MethodName": "GetGuestTokenAsync", "EntryPoint": "API", "InputData": null, "TraceId": "b0a2eb8e-6950-4f06-b644-ccc866730271", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisation\/262\/Embed\/GuestToken\",\"Route\":\"\/Organisation\/262\/Embed\/GuestToken\",\"Query\":\"\",\"Body\":{\"resourceType\":\"master_dashboard\",\"resourceUuid\":\"3\"}}" }
{ "timestamp": "2026-08-27 12:45:51.3324", "level": "Error", "severity": "ERROR", "TraceId": "5cb15a88-3b74-4732-8f0d-37ff3553aaed", "message": "Error occurred while Whatsapp message.", "stackTrace": "System.Exception: Error occurred while Whatsapp message. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.\r\n   at System.Net.HttpWebRequest.GetResponse()\r\n   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\r\n   --- End of inner exception stack trace ---", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/262/VisitorManagement/36/SendGateOtp","Route":"/Organisations/262/VisitorManagement/36/SendGateOtp","Query":"","Body":{}}, "MethodName": "SendMessage", "EntryPoint": "API", "InputData": null, "TraceId": "5cb15a88-3b74-4732-8f0d-37ff3553aaed", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/262\/VisitorManagement\/36\/SendGateOtp\",\"Route\":\"\/Organisations\/262\/VisitorManagement\/36\/SendGateOtp\",\"Query\":\"\",\"Body\":{}}" }
{ "timestamp": "2026-08-27 14:18:08.8038", "level": "Error", "severity": "ERROR", "TraceId": "064416a6-0306-4c77-9afc-a63528b6fbed", "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-27 14:18:08.8038", "level": "Error", "severity": "ERROR", "TraceId": "4ff27841-100e-429e-9224-484d01e9529e", "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/AppVersions?DeviceType=android&IsLatestVersion=true&IsOqsha=true","Route":"/AppVersions","Query":"?DeviceType=android&IsLatestVersion=true&IsOqsha=true","Body":""} }
{ "timestamp": "2026-08-27 15:49:18.8271", "level": "Error", "severity": "ERROR", "TraceId": "64b40dac-eb42-47f4-92fc-77993091714c", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429075?Export=true","Route":"/Organisations/207/PermitToWork/429075","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "64b40dac-eb42-47f4-92fc-77993091714c", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429075?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429075\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:49:19.9444", "level": "Error", "severity": "ERROR", "TraceId": "473b80ed-c7c4-4a85-96e8-febb495c5a94", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429075?Export=true","Route":"/Organisations/207/PermitToWork/429075","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "473b80ed-c7c4-4a85-96e8-febb495c5a94", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429075?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429075\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:49:20.2264", "level": "Error", "severity": "ERROR", "TraceId": "b2bd1fb6-9914-45f3-8cbb-8eefafbc8ee8", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429075?Export=true","Route":"/Organisations/207/PermitToWork/429075","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "b2bd1fb6-9914-45f3-8cbb-8eefafbc8ee8", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429075?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429075\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:49:20.3997", "level": "Error", "severity": "ERROR", "TraceId": "5352955b-3e32-4d9e-af7c-cf07c4571bd7", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429075?Export=true","Route":"/Organisations/207/PermitToWork/429075","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "5352955b-3e32-4d9e-af7c-cf07c4571bd7", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429075?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429075\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:50:49.9326", "level": "Error", "severity": "ERROR", "TraceId": "31e919a6-16ca-4279-ae9d-f14542ff08ab", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429077?Export=true","Route":"/Organisations/207/PermitToWork/429077","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "31e919a6-16ca-4279-ae9d-f14542ff08ab", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429077?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429077\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:50:51.1987", "level": "Error", "severity": "ERROR", "TraceId": "fb5d349e-6708-4b81-b195-df389ca2e154", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429077?Export=true","Route":"/Organisations/207/PermitToWork/429077","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "fb5d349e-6708-4b81-b195-df389ca2e154", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429077?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429077\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:50:52.0011", "level": "Error", "severity": "ERROR", "TraceId": "749e8277-409f-4eb8-a97e-4c3086a07ddf", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429077?Export=true","Route":"/Organisations/207/PermitToWork/429077","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "749e8277-409f-4eb8-a97e-4c3086a07ddf", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429077?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429077\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:50:56.5167", "level": "Error", "severity": "ERROR", "TraceId": "df6a025a-bf6e-4f28-8644-3e53b81c4b8e", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429077?Export=true","Route":"/Organisations/207/PermitToWork/429077","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "df6a025a-bf6e-4f28-8644-3e53b81c4b8e", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429077?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429077\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:50:57.2491", "level": "Error", "severity": "ERROR", "TraceId": "d110f575-5b48-4730-8c84-d842f889ae07", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429077?Export=true","Route":"/Organisations/207/PermitToWork/429077","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "d110f575-5b48-4730-8c84-d842f889ae07", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429077?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429077\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:50:57.7891", "level": "Error", "severity": "ERROR", "TraceId": "29d8ecf9-cd7a-4d36-b18c-af812e078e01", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429077?Export=true","Route":"/Organisations/207/PermitToWork/429077","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "29d8ecf9-cd7a-4d36-b18c-af812e078e01", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429077?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429077\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:50:57.9780", "level": "Error", "severity": "ERROR", "TraceId": "c94aa628-70eb-4516-b3dd-e87680f67e21", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429077?Export=true","Route":"/Organisations/207/PermitToWork/429077","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "c94aa628-70eb-4516-b3dd-e87680f67e21", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429077?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429077\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:51:06.1467", "level": "Error", "severity": "ERROR", "TraceId": "e5a001fb-db4a-483e-8fdf-df72d81e49e5", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429077?Export=true","Route":"/Organisations/207/PermitToWork/429077","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "e5a001fb-db4a-483e-8fdf-df72d81e49e5", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429077?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429077\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:52:17.3271", "level": "Error", "severity": "ERROR", "TraceId": "40844f35-0222-4c93-a841-b74ba3c432e3", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "40844f35-0222-4c93-a841-b74ba3c432e3", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:52:19.7592", "level": "Error", "severity": "ERROR", "TraceId": "1d610469-787a-491f-8c3a-0b70c487ff35", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "1d610469-787a-491f-8c3a-0b70c487ff35", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:52:30.3794", "level": "Error", "severity": "ERROR", "TraceId": "6a61ed6e-fbc2-4d4a-ad3e-3e42664e039e", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/429069?Export=true","Route":"/Organisations/207/PermitToWork/429069","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "6a61ed6e-fbc2-4d4a-ad3e-3e42664e039e", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/207\/PermitToWork\/429069?Export=true\",\"Route\":\"\/Organisations\/207\/PermitToWork\/429069\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:53:59.7269", "level": "Error", "severity": "ERROR", "TraceId": "623750dd-0c29-4a59-93bf-962dc53dcc2a", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/211/PermitToWork/429066?Export=true","Route":"/Organisations/211/PermitToWork/429066","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "623750dd-0c29-4a59-93bf-962dc53dcc2a", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/211\/PermitToWork\/429066?Export=true\",\"Route\":\"\/Organisations\/211\/PermitToWork\/429066\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:54:01.8119", "level": "Error", "severity": "ERROR", "TraceId": "95cfc0c7-c88e-4e31-92c5-d577363de6e6", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/211/PermitToWork/429066?Export=true","Route":"/Organisations/211/PermitToWork/429066","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "95cfc0c7-c88e-4e31-92c5-d577363de6e6", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/211\/PermitToWork\/429066?Export=true\",\"Route\":\"\/Organisations\/211\/PermitToWork\/429066\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:54:09.3690", "level": "Error", "severity": "ERROR", "TraceId": "ad06b0eb-ecca-4c30-8b6a-6f1162f4bb99", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/211/PermitToWork/429066?Export=true","Route":"/Organisations/211/PermitToWork/429066","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "ad06b0eb-ecca-4c30-8b6a-6f1162f4bb99", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/211\/PermitToWork\/429066?Export=true\",\"Route\":\"\/Organisations\/211\/PermitToWork\/429066\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 15:54:11.8325", "level": "Error", "severity": "ERROR", "TraceId": "7b312b2e-cbef-4309-9f14-f39970b48c69", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.FormatSectionContent(PermitToWorkSection section, String mediaServerUrl) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 335\r\n   at IncidentReporter.API.Helpers.ExportPtwPDFHelper.ExportPtwPDF(PermitToWorkExportDBO ptw, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String templateFile, String timeZone, UserExistsInSiteAndCompanyDBO userExistsData, List`1 sectionsGroupedByJobType, PtwPreferences ptwOrgPreference) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\Helpers\\ExportPtwPDFHelper.cs:line 89\r\n   at IncidentReporter.API.BLL.PtwBLL.<ExportPtwPDF>d__76.MoveNext() in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\BLL\\PtwBLL.cs:line 6173", "ApiInput": {"Method":"GET","Url":"https://api-qa-staging-2.oqsha.com/Organisations/211/PermitToWork/429066?Export=true","Route":"/Organisations/211/PermitToWork/429066","Query":"?Export=true","Body":""}, "MethodName": "ExportPtwPDF", "EntryPoint": "API", "InputData": null, "TraceId": "7b312b2e-cbef-4309-9f14-f39970b48c69", "ApiInputJson": "{\"Method\":\"GET\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/211\/PermitToWork\/429066?Export=true\",\"Route\":\"\/Organisations\/211\/PermitToWork\/429066\",\"Query\":\"?Export=true\",\"Body\":\"\"}" }
{ "timestamp": "2026-08-27 16:24:12.7061", "level": "Error", "severity": "ERROR", "TraceId": "af8db74e-acfc-4aa8-8411-6ca0abd232e5", "message": "Error occurred while Whatsapp message.", "stackTrace": "System.Exception: Error occurred while Whatsapp message. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.\r\n   at System.Net.HttpWebRequest.GetResponse()\r\n   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\r\n   --- End of inner exception stack trace ---", "ApiInput": {"Method":"POST","Url":"https://api-qa-staging-2.oqsha.com/Organisations/262/VisitorManagement/39/SendGateOtp","Route":"/Organisations/262/VisitorManagement/39/SendGateOtp","Query":"","Body":{}}, "MethodName": "SendMessage", "EntryPoint": "API", "InputData": null, "TraceId": "af8db74e-acfc-4aa8-8411-6ca0abd232e5", "ApiInputJson": "{\"Method\":\"POST\",\"Url\":\"https:\/\/api-qa-staging-2.oqsha.com\/Organisations\/262\/VisitorManagement\/39\/SendGateOtp\",\"Route\":\"\/Organisations\/262\/VisitorManagement\/39\/SendGateOtp\",\"Query\":\"\",\"Body\":{}}" }
