### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


### Started process for Execution of Event : SAFETY_ALERT_ESCALATION_NOTIFICATION ###


### Started processing Safety Alert Escalation Notification ###


# Calling SendSafetyAlertEscalationNotification for incident QTW6TT#


[SafetyAlertEscalation] Starting notification for incident QTW6TT


[SafetyAlertEscalation] Sending email to Annis Baron


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Ticket Escalation - QTW6TT

This is a test mode notification. Notification was not delivered to recipient.


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


[SafetyAlertEscalation] Email sent successfully to osm02769@osmosys.co


[SafetyAlertEscalation] Sending WhatsApp to Annis Baron, Number: 912000002657


Osmo-x WhatsApp Message has been Sent


[SafetyAlertEscalation] WhatsApp sent successfully to 912000002657


### Ended processing Safety Alert Escalation Notification ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[267,881]"},{"Key":"AuditId","Value":"360"},{"Key":"OrgId","Value":"262"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION ###


### Started processing for Audit Creation Event ###


Using default template for Org 262: Templates\AuditCreationEmailTemplate.html


An Audit has been created


RequestBody: {  "providerId": 48,  "data": {    "to": "912000001875",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template_v1",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/SAIL/RIG/PCV/26/00001","image":null,"document":null,"video":null},{"type":"text","text":"343434","image":null,"document":null,"video":null},{"type":"text","text":"22-Jun-2026 12:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/audit/edit-audit/262/360","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


RequestBody: {  "providerId": 48,  "data": {    "to": "912000007341",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template_v1",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/SAIL/RIG/PCV/26/00001","image":null,"document":null,"video":null},{"type":"text","text":"343434","image":null,"document":null,"video":null},{"type":"text","text":"22-Jun-2026 12:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/audit/edit-audit/262/360","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


# Preparing notification body #


### Ended processing Investigation Creator Status Update Event ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Started process for Execution of Event : BULK_EXPORT_READY ###


# Calling SendBulkExportReadyEmail for exportId=12 userId=267 #


[BulkExport] Fetching user details for userId=267


[BulkExport] Sending email to=TTK_Admin@oqsha.com


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Your OQSHA bulk export is ready


[BulkExport] Email sent successfully to=TTK_Admin@oqsha.com


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : WHATSAPP_TO_BATCH_PARTICIPANTS ###


# Calling SendNotificationToBatchParticipants function for  whatsapp notification #


Executing completed course notification function to batch participants


Executing planned/Inprogress notification function to batch participants


### Started process for Execution of Event : HEALTH_INCIDENT_CREATION_NOTIFICATION ###


### Started processing for Health Incident Creation Event ###


Executing email notifications to Supervisor/Site EHS for incident creation for OHC


Initializing Email Service Client


Generating Email Request


An Incident - IMF/FBYDW/ROO/INJ/26/00001 created for a OHC - HT/FBYDW/ROO/WII/26/00001


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to Supervisor/Site EHS for incident creation for OHC


Sending WhatsApp for Heath incident creation to User: 267


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Health Incident Creation Event ###


### End Event Execution ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


Message : {"EventName":"ADD_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Aditya Vishwakarma"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Meiwu Technology Company Limited"},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":""},{"Key":"UserIncidentSites","Value":"Bland, Blencoe, Bothell East, Collins Colony, De Land, East Newark, Ellinger, Falkville, Fletcher, Foothill Farms, Highland Falls, Island Pond, Johnson Park, Lake Havasu City, Magnolia Beach, Mahanoy City, Newton Hamilton, North Fairfield, North Tunica, Ormond Beach, Peotone, Richton, St. Johns, Waterville, West Pleasant View, Woodsburgh"},{"Key":"Email","Value":"aditya997701613543@gmail.com"},{"Key":"MobileNumber","Value":"+919977016135"}]}


### Started process for Execution of Event : ADD_APP_USER ###


### Started Event for Add App User Email ###


Calling Send Email Function for Add User Email


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Welcome to OQSHA


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Message : {"EventName":"WHATSAPP_TO_BATCH_PARTICIPANTS","EventArgs":[{"Key":"BatchParticipantIds","Value":"[29544,29545,29546]"},{"Key":"BatchId","Value":1697}]}


### Started process for Execution of Event : WHATSAPP_TO_BATCH_PARTICIPANTS ###


# Calling SendNotificationToBatchParticipants function for  whatsapp notification #


Executing completed course notification function to batch participants


Executing planned/Inprogress notification function to batch participants


Sending notification to batch participant for planned and in progress status6335


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003729","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_planned_batch_latest_v1","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Abigail Miley"},{"type":"text","text":"TH5"},{"type":"text","text":"Visitor induction - Roorkee"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"0 Week(s) 0 Day(s) 1 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"June 22, 2026  05:25:00 PM"},{"type":"text","text":"PLANNED"},{"type":"text","text":"https://oqsha.com/#/batches/view/248/219/1697?dlType=viewBatch"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending notification to batch participant for planned and in progress status6717


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003962","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_planned_batch_latest_v1","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Adelbert Miley"},{"type":"text","text":"TH5"},{"type":"text","text":"Visitor induction - Roorkee"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"0 Week(s) 0 Day(s) 1 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"June 22, 2026  05:25:00 PM"},{"type":"text","text":"PLANNED"},{"type":"text","text":"https://oqsha.com/#/batches/view/248/219/1697?dlType=viewBatch"}]}]}}}


Sending notification to batch participant for planned and in progress status12250


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"915555559394","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_planned_batch_latest_v1","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Adi Firth"},{"type":"text","text":"TH5"},{"type":"text","text":"Visitor induction - Roorkee"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"0 Week(s) 0 Day(s) 1 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"June 22, 2026  05:25:00 PM"},{"type":"text","text":"PLANNED"},{"type":"text","text":"https://oqsha.com/#/batches/view/248/219/1697?dlType=viewBatch"}]}]}}}


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"COMPLETED_BATCH","EventArgs":[{"Key":"BatchId","Value":1697}]}


### Started process for Execution of Event : COMPLETED_BATCH ###


# Calling SendNotificationToBatchParticipantsForCompletedStatus function for  whatsapp notification #


Executing completed notification function to batch participants


Sending completed batch notification to batch participant6335


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000003729","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_completed_batch_v5","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Abigail Miley"},{"type":"text","text":"TH5"},{"type":"text","text":"Visitor induction - Roorkee"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"0 Week(s) 0 Day(s) 1 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"June 22, 2026  05:30:09 PM"},{"type":"text","text":"https://oqsha.com/#/batches/view/248/219/1697?dlType=viewBatch"}]}]}}}


Generating certificate.


System.ArgumentNullException: Value cannot be null.
Parameter name: path4
   at System.IO.Path.Combine(String path1, String path2, String path3, String path4)
   at IncidentReporter.API.Helpers.ExportTrainingCertificateHelper.ExportCertificate(TrainingCertificateDTO participant, String outputAbsoluteFilePath, Int32 orgId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportTrainingCertificateHelper.cs:line 25
   at IncidentReporter.API.Helpers.ExportTrainingCertificateHelper.ExportCertificatePDFAsByteArray(TrainingCertificateDTO participant, Int32 orgId, Int32 batchId, Int32 participantId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportTrainingCertificateHelper.cs:line 115
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendNotificationToBatchParticipantsForCompletedStatus(Int64 batchId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 3415
   at IncidentReporter.NotificationSender.DAL.Events.EventHandler.HandleMessage(IMessage message) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\EventHandler.cs:line 515


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":75754},{"Key":"AssignedToID","Value":8440}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Generating report.


S3 Upload Failed

Amazon.S3.AmazonS3Exception: The AWS Access Key Id you provided does not exist in our records. ---> Amazon.Runtime.Internal.HttpErrorResponseException: The remote server returned an error: (403) Forbidden. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl(Func`3 beginMethod, Func`2 endFunction, Action`1 endAction, Object state, TaskCreationOptions creationOptions)
   at System.Net.WebRequest.<GetResponseAsync>b__78_0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.HttpRequest.<GetResponseAsync>d__19.MoveNext()
   --- End of inner exception stack trace ---
   at Amazon.Runtime.Internal.HttpRequest.<GetResponseAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.HttpHandler`1.<InvokeAsync>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.RedirectHandler.<InvokeAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.Unmarshaller.<InvokeAsync>d__3`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.S3.Internal.AmazonS3ResponseHandler.<InvokeAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.ErrorHandler.<InvokeAsync>d__5`1.MoveNext()
   --- End of inner exception stack trace ---
   at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleExceptionStream(IRequestContext requestContext, IWebResponseData httpErrorResponse, HttpErrorResponseException exception, Stream responseStream)
   at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.<HandleExceptionAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.ExceptionHandler`1.<HandleAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.ErrorHandler.<ProcessExceptionAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.ErrorHandler.<InvokeAsync>d__5`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.CallbackHandler.<InvokeAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.Signer.<InvokeAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.S3.Internal.S3Express.S3ExpressPreSigner.<InvokeAsync>d__5`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.EndpointDiscoveryHandler.<InvokeAsync>d__2`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Amazon.Runtime.Internal.EndpointDiscoveryHandler.<InvokeAsync>d__2`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.CredentialsRetriever.<InvokeAsync>d__7`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.RetryHandler.<InvokeAsync>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Amazon.Runtime.Internal.RetryHandler.<InvokeAsync>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.CallbackHandler.<InvokeAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.CallbackHandler.<InvokeAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.S3.Internal.AmazonS3ExceptionHandler.<InvokeAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.ErrorCallbackHandler.<InvokeAsync>d__5`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.Runtime.Internal.MetricsHandler.<InvokeAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Amazon.S3.Transfer.Internal.SimpleUploadCommand.<ExecuteAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Amazon.S3.Transfer.TransferUtility.Upload(String filePath, String bucketName, String key)
   at IncidentReporter.API.Helpers.AttachmentsHelper.S3Integration.UploadAndDeleteLocal(String localFilePath, String relativeDbPath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\AttachmentsHelper.cs:line 404


Converted to byte file


PDF generation successfull


Stopped Assigned To SMS as Org Level setting is set to false


Sending Assigned To Whatsapp for IncidentId:75754


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Assigned to Notification Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":75754},{"Key":"AssignedToID","Value":7144}]}


S3 Upload Failed


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:75754


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/4629811e-104d-3f4a-ae73-dcadb59e6fe9


Unauthorized


--- AWS SNS Push Notification created using Osmo-x ---


--- Push notification response from Osmo-x is Unauthorized


Push notification failed to send to a device 20461.


# Push notification did not send #


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/adc9e540-5962-38d5-b4cb-56a0920d98ee


Push notification failed to send to a device 20541.


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : BULK_EXPORT_READY ###


# Calling SendBulkExportReadyEmail for exportId=13 userId=267 #


[BulkExport] Fetching user details for userId=267


[BulkExport] Sending email to=TTK_Admin@oqsha.com


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Your OQSHA bulk export is ready


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


[BulkExport] Email sent successfully to=TTK_Admin@oqsha.com


# Calling SendBulkExportReadyEmail for exportId=14 userId=267 #


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[267]"},{"Key":"AuditId","Value":"361"},{"Key":"OrgId","Value":"262"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION ###


### Started processing for Audit Creation Event ###


Using default template for Org 262: Templates\AuditCreationEmailTemplate.html


An Audit has been created


RequestBody: {  "providerId": 48,  "data": {    "to": "912000001875",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template_v1",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/SAIL/RIG/PCV/26/00002","image":null,"document":null,"video":null},{"type":"text","text":"efe","image":null,"document":null,"video":null},{"type":"text","text":"23-Jun-2026 05:30:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/audit/edit-audit/262/361","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Investigation Creator Status Update Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":75755},{"Key":"InformToUserId","Value":5532}]}


### Started process for Execution of Event : INFORM_TO_INCIDENT_CREATION_NOTIFICATION ###


### Started processing Inform-To Incident Creation Notification ###


Calling SendInformToNotification function for ticket creation


Sending Inform-To WhatsApp for IncidentId: 75755


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008275","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_inform_to_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/NMM/26/00001"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Colver"},{"type":"text","text":"Near Misses"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Open"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/75755?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Generating Safety Alert report.


S3 Upload Failed


Converted to byte file


## Safety Alert Email Sent to Lesia Hardman##


Sending Inform-To Email (with Safety Alert PDF) for IncidentId: 75755


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Safety Alert T/FBYDW/NMM/26/00001 has been created


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### Ended processing Inform-To Incident Creation Notification ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 267


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_task_assigned_to_notification_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"AT/FBYDW/ROO/TTT/26/00001"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"https://oqsha.com/#/tasks/edit/14455?dlType=viewTask&orgID=248"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":75755},{"Key":"AssignedToID","Value":267}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


Osmo-x WhatsApp Message has been Sent


Sending Task Assignment Email for TaskId: 14455, UserId: 267


Initializing Email Service Client


Generating Email Request


Generating report.


New Action Tracker Assigned - AT/FBYDW/ROO/TTT/26/00001


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


# Preparing notification body #


### End Event Execution ###


S3 Upload Failed


Converted to byte file


PDF generation successfull


## Sending email to Sal Eaton, UserId : 267 for assigned to notification ##


Sending Assigned To Email for IncidentId:75755


A Safety Alert T/FBYDW/NMM/26/00001 is assigned to you related to 'Near Misses'


Stopped Assigned To SMS as Org Level setting is set to false


Sending Assigned To Whatsapp for IncidentId:75755


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_assigned_to_whatsapp_template_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/NMM/26/00001"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Colver"},{"type":"text","text":"Near Misses"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/75755?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Assigned to Notification Event ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":75755},{"Key":"IncidentHistoryId","Value":102362},{"Key":"IsTicketAssigned","Value":true}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:75755


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Safety Alert T/FBYDW/NMM/26/00001 has been updated


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/NMM/26/00001"},{"type":"text","text":"Safety Alert status updated to Assigned"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Colver"},{"type":"text","text":"Near Misses"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/75755?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


# Preparing notification body #


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":75755},{"Key":"IncidentHistoryId","Value":102363},{"Key":"IsTicketAssigned","Value":false}]}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/NMM/26/00001"},{"type":"text","text":"Safety Alert status updated to Resolved., Comments are added as Resolving"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Colver"},{"type":"text","text":"Near Misses"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/75755?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Message : {"EventName":"INCIDENT_CLOSURE_NOTIFICATION_VALIDATION_1","EventArgs":[{"Key":"IncidentId","Value":75755},{"Key":"ClosedById","Value":267}]}


### Started process for Execution of Event : INCIDENT_CLOSURE_NOTIFICATION_VALIDATION_1 ###


### Started processing for Incident Closure Validation Level 1 Event ###


Generating report.


## Sending notification to Site EHS user ##


## Notification to be send for these users: [5532]


## Sending email to Lesia Hardman, UserId : 5532 for Incident Closure Validation notification ##


S3 Upload Failed


Converted to byte file


Sending Incident Closure Validation Email with Safety Alert PDF for IncidentId:75755


Initializing Email Service Client


Generating Email Request


Safety Alert Validation Level 1


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending Inform-To Update WhatsApp for IncidentId:75755


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008275","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_validation_level_1_whatsapp_template_ttk_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"T/FBYDW/NMM/26/00001"},{"type":"text","text":"22-Jun-2026 07:08:37 PM"},{"type":"text","text":"Near Misses"},{"type":"text","text":"Colver"},{"type":"text","text":"Colver"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/75755?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Incident Closure Validation Level 1 Event ###


### End Event Execution ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":75755},{"Key":"IncidentHistoryId","Value":102364},{"Key":"IsTicketAssigned","Value":false}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:75755


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending Assigned To Whatsapp for IncidentId:75755


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/NMM/26/00001"},{"type":"text","text":"Safety Alert status updated to Assigned., Comments are added as Reopening"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Colver"},{"type":"text","text":"Near Misses"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Assigned"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/75755?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"INCIDENT_REOPEN_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":75755},{"Key":"ClosedById","Value":267}]}


### Started process for Execution of Event : INCIDENT_REOPEN_NOTIFICATION ###


### Started processing for Incident Reopen Event ###


Generating report.


## Sending email to Sal Eaton, UserId : 267 for reopen notification ##


Sending Assigned To Email for IncidentId:75755


Initializing Email Service Client


Generating Email Request


Safety Alert Reopened


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending Inform-To Update WhatsApp for IncidentId:75755


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_reopen_whatsapp_template_ttk_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"T/FBYDW/NMM/26/00001"},{"type":"text","text":"22-Jun-2026 07:08:37 PM"},{"type":"text","text":"Near Misses"},{"type":"text","text":"Colver"},{"type":"text","text":"Colver"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/75755?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Incident Reopen Event ###


### End Event Execution ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":75755},{"Key":"IncidentHistoryId","Value":102366},{"Key":"IsTicketAssigned","Value":false}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Sending Email for IncidentId:75755


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending Assigned To Whatsapp for IncidentId:75755


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_update_whatsapp_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"T/FBYDW/NMM/26/00001"},{"type":"text","text":"Safety Alert status updated to Resolved., Comments are added as Resolving again"},{"type":"text","text":"Safety Alert"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Colver"},{"type":"text","text":"Near Misses"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Resolved"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/75755?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


### Ended processing Update incident Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"INCIDENT_CLOSURE_NOTIFICATION_VALIDATION_1","EventArgs":[{"Key":"IncidentId","Value":75755},{"Key":"ClosedById","Value":267}]}


### Started process for Execution of Event : INCIDENT_CLOSURE_NOTIFICATION_VALIDATION_1 ###


### Started processing for Incident Closure Validation Level 1 Event ###


Generating report.


## Sending notification to Site EHS user ##


## Notification to be send for these users: [5532]


## Sending email to Lesia Hardman, UserId : 5532 for Incident Closure Validation notification ##


Converted to byte file


Sending Incident Closure Validation Email with Safety Alert PDF for IncidentId:75755


Initializing Email Service Client


Generating Email Request


Safety Alert Validation Level 1


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending Inform-To Update WhatsApp for IncidentId:75755


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000008275","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_ticket_validation_level_1_whatsapp_template_ttk_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Lesia Hardman"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"T/FBYDW/NMM/26/00001"},{"type":"text","text":"22-Jun-2026 07:08:37 PM"},{"type":"text","text":"Near Misses"},{"type":"text","text":"Colver"},{"type":"text","text":"Colver"},{"type":"text","text":"Open Wires"},{"type":"text","text":"Sal Eaton"},{"type":"text","text":"https://oqsha.com/#/incidents/view/248/75755?dlType=viewTicket"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### Ended processing Incident Closure Validation Level 1 Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":120},{"Key":"TniName","Value":"TNI - Plant Safety Standards (Advanced) - Executive - NEW"},{"Key":"UserIds","Value":"[]"}]}


### Started process for Execution of Event : NOTIFICATION_FOR_BATCH_SCHEDULING_COMPLETED ###


# Calling SendBatchSchedulingCompletedNotification for tniId=120 organisationId=264 #


Message : {"EventName":"NOTIFICATION_FOR_ATTENDEE_ALLOCATION_COMPLETED","EventArgs":[{"Key":"OrganisationId","Value":264},{"Key":"OrganisationName","Value":"Neveu"},{"Key":"TniId","Value":120},{"Key":"TniName","Value":"TNI - Plant Safety Standards (Advanced) - Executive - NEW"},{"Key":"UserIds","Value":"[]"}]}


### Started process for Execution of Event : NOTIFICATION_FOR_ATTENDEE_ALLOCATION_COMPLETED ###


# Calling SendAttendeeAllocationCompletedNotification for tniId=120 organisationId=264 #


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###