Configuration missing: JSREPORT_API_KEY

System.InvalidOperationException: Configuration missing: JSREPORT_API_KEY
   at IncidentReporter.API.Helpers.JsReportUtils.<RenderPdfAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\JsReportUtils.cs:line 31
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.Helpers.PdfExportSwitchHelper.<TryRenderPdfViaJsReportAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\PdfExportSwitchHelper.cs:line 64


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


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


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


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Resources/package-features-eng


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


Request Body : {"ModuleId":99,"CategoryId":100003,"TemplateName":"PTW COMPLIANCE VERIFICATION AT WORKSITE","TemplateId":"df84b0ef-7c16-4eb1-9f9b-a936da728fab","Status":"Active"}


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


Request Body : {"SiteIds":[],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":"","UserId":267}


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Trigger-Configs/Dropdowns


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


Request Body : {"ModuleId":99,"CategoryId":100002,"TemplateName":"Senior Management Visit","TemplateId":"c1e2183d-65d2-421c-a3b0-ceca9b4adadc","Status":"Active"}


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


Request Body : {"ModuleId":99,"CategoryId":100001,"TemplateName":"Drilling / WorkOver Rig Audit Report","TemplateId":"49272cba-6eb1-4b91-b26b-76c194accf5d","Status":"Active"}


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/207/PermitToWork/410129?Export=true


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


Request Body : {"ModuleId":99,"CategoryId":100000,"TemplateName":"OISD - External Safety Audit Checklist","TemplateId":"ce082d49-5f34-48e4-ac06-3e84ad208fd4","Status":"Active"}


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Resources/package-features-eng


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


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Trigger-Configs/Dropdowns


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


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


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


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


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


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


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


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


Request Body : {"SiteIds":[],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":"","UserId":267}


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


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


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


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


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


Request Body : {"SearchTerm":"","CategoryIds":[6],"UploadedBy":[],"PageNumber":1,"PageLimit":10,"SortingColumn":["UploadedOn"],"SortingOrder":["desc"],"Orgid":248}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/UserPreference/267


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


Request URL : https://api-qa-staging-2.oqsha.com/Assets/AssetTypes?OrgId=248&SortingOrder=asc&SortingColumn=Name


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


Request Body : {"OrgId":248,"UserId":267}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Library


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Resources/package-features-eng


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


Request Body : {"ModuleId":121,"CategoryId":100019,"TemplateName":"VM - Security Approval","TemplateId":"6879181f-b99c-4ab3-8ac5-86bc06f52786","Status":"Active"}


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


Request Body : {"SiteIds":[],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":"","UserId":267}


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Trigger-Configs/Dropdowns


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


Request URL : https://api-qa-staging-2.oqsha.com/Templates/PDFs/122/{PssrPortalUrl}/


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


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


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


Request Body : {"ModuleId":121,"CategoryId":100018,"TemplateName":"Employee Visitor Registration","TemplateId":"35116ee9-2aab-44ce-adf8-e9c989c2e8b6","Status":"Active"}


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


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


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


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Modules/Version/All?Appversion=5.12.0


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/211/WorkPermitV2/All


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


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


Request Body : {"SiteId":[],"AssignedToId":[9717],"DepartmentId":[],"FromDate":"2026-07-29","ToDate":"2026-08-12","Live":true,"Pending":true,"PermitToWorkStatus":["TemporarilySuspended"]}


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


Request Body : {"SiteIds":[],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":"","UserId":267}


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


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


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


Request URL : https://api-qa-staging-2.oqsha.com/Trigger-Configs/Dropdowns


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


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


Request Body : {"ModuleId":121,"CategoryId":100017,"TemplateName":"Visitor creation by employee","TemplateId":"76a85ab4-591c-4415-b365-e3618ff3d5b3","Status":"Active"}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/262/AuditV2/7/Export