[WorkPermit] No WorkPermit reminders to process


Request URL : https://api-sandbox.oqsha.com/Organisations/262/InspectionV2/21


Preparing to send WorkPermit 'Submit' status change notification. WorkPermitId: 2032, OrgId: 259


Creating notification event. ChangedBy: Derek Cope, Approvers JSON: [10552]


Pushing WorkPermit 'Submit' status change notification to NSQ for WorkPermitId: 2032


Preparing to send WorkPermit 'Submit' status change notification to Department Incharge. WorkPermitId: 2032, OrgId: 259


Request URL : https://api-sandbox.oqsha.com/Organisations/259


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/Statuses


Request URL : https://api-sandbox.oqsha.com/Organisations/259/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=832


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/Categories


Request Body : {"UserId":10552}


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


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Users/881/incidentsites


Request Body : {"PageNumber":1,"PageLimit":200,"UserId":"881"}


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/All


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Workflows/Transitions/Available


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Users


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Users/881


Request Body : {"CurrentEntityState":"Draft","ActorContext":{},"EntityId":21}


Request URL : https://api-sandbox.oqsha.com/Countries


Request URL : https://api-sandbox.oqsha.com/Organisation/259/Users/DropDown?ModuleName=Work Permit&AcmModuleId=55


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/2032


Request URL : https://api-sandbox.oqsha.com/Organisation/259/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/2032/History


Request URL : https://api-sandbox.oqsha.com/Organisation/259/Users/Dropdown?departmentId=292


Request URL : https://api-sandbox.oqsha.com/Organisations/259/Departments?siteId=832


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/ShiftTimings


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/Category/78?categoryType=Closure


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/Category/1?categoryType=Extension


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/Categories


Request Body : {"SortingColumn":["CategoryName"],"SortingOrder":["asc"],"SiteId":[832],"UserId":"10552"}


Request URL : https://api-sandbox.oqsha.com/Organisation/259/Users/Dropdown?siteId=832&departmentId=292


Request URL : https://api-sandbox.oqsha.com/Organisation/259/Users/DropDown?ModuleName=Work Permit&SiteId=832&AcmModuleId=55


Request URL : https://api-sandbox.oqsha.com/attachments/259/static_image/9a2a8211272244a79632be085c4d5dc7_2026-05-01_16-59-09-599_cb63ab25-9fe4-4732-a1f5-58bc159718da.png


Request URL : https://api-sandbox.oqsha.com/attachments/259/static_image/4510bdf620534cedb48fb92c4ef98286_2026-05-01_16-59-20-5920_fec6476f-6d4f-4fed-a332-1c99f22a9ea7.png


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Users


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


Request Body : {"PageNumber":1,"PageLimit":200,"UserId":"881"}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/InspectionV2/21


Request URL : https://api-sandbox.oqsha.com/Organisations/262/InspectionV2/All


Request URL : https://api-sandbox.oqsha.com/Users/881/ExportAll?Export=true


Request URL : https://api-sandbox.oqsha.com/Logout


Request Body : {}


JTI dcbc80b1-5ed2-4b8d-a367-e75de7c90290 for userId = 881 is saved to database.


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/Countries


Request URL : https://api-sandbox.oqsha.com/AppVersions?DeviceType=android&IsLatestVersion=true&IsOqsha=true


Request URL : https://api-sandbox.oqsha.com/AppVersions?DeviceType=android&Version=5.12.0&IsOqsha=true


Request URL : https://api-sandbox.oqsha.com/Resources/app-language-eng


Request URL : https://api-sandbox.oqsha.com/Health


Request URL : https://api-sandbox.oqsha.com/Otp


Request Body : {"CountryCode":"+91","MobileNumber":"2000001875"}


Request URL : https://api-sandbox.oqsha.com/Login


Request Body : {"OTP":"9999","MobileNumber":"2000001875","CountryCode":"+91","RememberMe":true,"IsOqsha":true}


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


Request URL : https://api-sandbox.oqsha.com/Modules/APIs


Request URL : https://api-sandbox.oqsha.com/Users/267/Organisations/


Request URL : https://api-sandbox.oqsha.com/Users/267/FieldStaffOrganisations/


Request URL : https://api-sandbox.oqsha.com/Users/267


Request URL : https://api-sandbox.oqsha.com/Users/267/UserDevices


Calling RegisterWithSNS for registering the device token : fRIRUCGyR6aO6YrX0jJ3AK:APA91bFAuB4p0PV9u7nh0Po0Xa4UdoSx_hFPAzv95QF-1mJfSi6apHs6PxzDwhNliAuz7j4hoYwWVfh9THW7c-yyeVljKrdq16PyV6VH6izVfA5VSLsX14s


Invalid parameter: Token Reason: Endpoint arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/d4801579-2ae4-3628-828f-46e8f38b92a5 already exists with the same Token, but different attributes.


Device Endpoint : arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/d4801579-2ae4-3628-828f-46e8f38b92a5


Request URL : https://api-sandbox.oqsha.com/attachments/users/cdvphoto001_94b73960-26ab-47c5-af6b-a8f0ce33cd02.jpg


Request URL : https://api-sandbox.oqsha.com/Organisations/159


Request URL : https://api-sandbox.oqsha.com/Organisation/159/UserDetails


Request URL : https://api-sandbox.oqsha.com/Organisations/159/Users/267


Request URL : https://api-sandbox.oqsha.com/Incidents


Request URL : https://api-sandbox.oqsha.com/Organisations/159/TicketStatus/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/Category/78?categoryType=Closure


System.ArgumentException: token
   at JWT.JwtParts..ctor(String token)
   at JWT.Builder.JwtBuilder.Decode(String token)
   at IncidentReporter.API.Handlers.Authorise.DecodeToken(String token, String secret) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 112
   at IncidentReporter.API.Handlers.Authorise.OnActionExecuting(HttpActionContext actionContext) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 38


Request URL : https://api-sandbox.oqsha.com/Organisations/262/InspectionV2/All


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/262


Request URL : https://api-sandbox.oqsha.com/Organisations/262/InspectionV2/21


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


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Users/267/incidentsites


Request Body : {"PageNumber":1,"PageLimit":200,"UserId":"267"}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Workflows/Transitions/Available


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Users


Request Body : {"CurrentEntityState":"Draft","ActorContext":{},"EntityId":21}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Users/267


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/Category/1?categoryType=Extension'


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/Category/1?categoryType=Extension


Request URL : https://api-sandbox.oqsha.com/attachments/users/cdvphoto001_94b73960-26ab-47c5-af6b-a8f0ce33cd02.jpg


Request URL : https://api-sandbox.oqsha.com/Users/267/ExportAll?Export=true


Request URL : https://api-sandbox.oqsha.com/attachments/users/images/profile1773394461867_f34b40c2-d434-4e3f-9295-4dedd7eb1d2a.jpeg


Request URL : https://api-sandbox.oqsha.com/Logout


Request Body : {}


JTI 21bdef55-fb06-4daf-8b51-c911db92fb36 for userId = 267 is saved to database.


Request URL : https://api-sandbox.oqsha.com/AppVersions?DeviceType=android&IsLatestVersion=true&IsOqsha=true


Request URL : https://api-sandbox.oqsha.com/Countries


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/AppVersions?DeviceType=android&Version=5.12.0&IsOqsha=true


Request URL : https://api-sandbox.oqsha.com/Resources/app-language-eng


Request URL : https://api-sandbox.oqsha.com/Health


Request URL : https://api-sandbox.oqsha.com/Otp


Request Body : {"CountryCode":"+91","MobileNumber":"2000007341"}


Request URL : https://api-sandbox.oqsha.com/Login


Request Body : {"OTP":"9999","MobileNumber":"2000007341","CountryCode":"+91","RememberMe":true,"IsOqsha":true}


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


Request URL : https://api-sandbox.oqsha.com/Modules/APIs


Request URL : https://api-sandbox.oqsha.com/Users/881/Organisations/


Request URL : https://api-sandbox.oqsha.com/Users/881


Request URL : https://api-sandbox.oqsha.com/Users/881/FieldStaffOrganisations/


Request URL : https://api-sandbox.oqsha.com/Users/881/UserDevices


Calling RegisterWithSNS for registering the device token : fRIRUCGyR6aO6YrX0jJ3AK:APA91bFAuB4p0PV9u7nh0Po0Xa4UdoSx_hFPAzv95QF-1mJfSi6apHs6PxzDwhNliAuz7j4hoYwWVfh9THW7c-yyeVljKrdq16PyV6VH6izVfA5VSLsX14s


Device Endpoint Created : arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Test/d4801579-2ae4-3628-828f-46e8f38b92a5


Request URL : https://api-sandbox.oqsha.com/Organisations/10


Request URL : https://api-sandbox.oqsha.com/Organisations/10/Users/881


Request URL : https://api-sandbox.oqsha.com/Organisation/10/UserDetails


Request URL : https://api-sandbox.oqsha.com/Incidents


Request URL : https://api-sandbox.oqsha.com/Organisations/10/TicketStatus/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/262/InspectionV2/All


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/262


Request URL : https://api-sandbox.oqsha.com/Organisations/262/InspectionV2/21


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


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Users/881/incidentsites


Request Body : {"PageNumber":1,"PageLimit":200,"UserId":"881"}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Workflows/Transitions/Available


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Users


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Users/881


Request Body : {"CurrentEntityState":"Submitted","ActorContext":{},"EntityId":21}


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/2032/Export


EnableTwoColumnsBasicDetails Value 'False'


Section Value 'IncidentReporter.DAL.Models.WorkPermitSection'


The file path you provided is not Valid

System.Exception: The file path you provided is not Valid
   at DocumentService.Pdf.PdfDocumentGenerator.GeneratePdfByTemplate(String toolFolderAbsolutePath, String templatePath, List`1 metaDataList, String outputFilePath)
   at IncidentReporter.API.Helpers.ExportWorkPermitPDFHelper.ExportWorkPermitPDF(WorkPermitExportDTO workPermit, String organisationBannerRelativePath, String organisationName, String outputAbsoluteFilePath, String timeZone, Boolean EnableTwoColumnsBasicDetails) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportWorkPermitPDFHelper.cs:line 837
   at IncidentReporter.API.BLL.WorkPermitBLL.<ExportWorkPermitPdfAsync>d__50.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\WorkPermitBLL.cs:line 4066


Request URL : https://api-sandbox.oqsha.com/Organisations/259/WorkPermit/2032