Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/improve smtp error return #22

Closed
wants to merge 1 commit into from

Conversation

Juiced66
Copy link

Will avoid to have undefined errors :
example:
{"level":"error","message":"2024-09-24 10-45-08 [LOG:ERROR] [knode-responsive-gaia-74820] [5a9f83b3-2ad1-4e0d-bdfd-4da0977f8fe3] [workflows] [tenant-chillnet_tenant-chill] Cannot execute workflow \"workflow--scheduled-report-1723483109074-0\": ExternalServiceError: SMTP undefined\n at new ExternalServiceError (/var/app/node_modules/kuzzle/lib/kerror/errors/externalServiceError.js:27:9)\n at SMTPClient.sendEmail (/var/app/node_modules/kuzzle-plugin-hermes-messenger/dist/lib/messenger-clients/SMTPClient.js:36:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async SMTPController.sendEmail (/var/app/node_modules/kuzzle-plugin-hermes-messenger/dist/lib/controllers/SMTPController.js:42:9)\n at async Funnel.executePluginRequest (/var/app/node_modules/kuzzle/lib/api/funnel.js:759:14)\n at async FunnelProtocol.query (/var/app/node_modules/kuzzle/lib/core/shared/sdk/funnelProtocol.js:95:24)\n at async ScheduledDashboardExportTask.sendDashboardExport (/var/app/node_modules/@kuzzleio/iot-platform-backend/dist/modules/dashboard/tasks/ScheduledDashboardExportTask.js:62:9)\n at async ScheduledDashboardExportTask.run (/var/app/node_modules/@kuzzleio/iot-platform-backend/dist/modules/dashboard/tasks/ScheduledDashboardExportTask.js:97:9)\n at async TaskExecutor.execute (/var/app/node_modules/@kuzzleio/plugin-workflows/dist/lib/actions/task/TaskExecutor.js:27:13)\n at async ActionsExecutor.execute (/var/app/node_modules/@kuzzleio/plugin-workflows/dist/lib/actions/ActionsExecutor.js:38:25)\n at async SchedulerTrigger.tryExecuteOnNode (/var/app/node_modules/@kuzzleio/plugin-workflows/dist/lib/triggers/scheduler/SchedulerTrigger.js:206:17)\n at async Promise.all (index 0)\n at async Timeout._onTimeout (/var/app/node_modules/@kuzzleio/plugin-workflows/dist/lib/triggers/scheduler/SchedulerTrigger.js:167:17)"}

@Juiced66 Juiced66 changed the base branch from master to 1-dev September 24, 2024 13:48
Copy link
Member

@etrousset etrousset left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep the original error log and add the new one has thas would break monitoring setup by customers

@Juiced66
Copy link
Author

We should keep the original error log and add the new one has thas would break monitoring setup by customers

So I should ensure that body is define too ?

@rolljee
Copy link
Contributor

rolljee commented Sep 25, 2024

We should keep the original error log and add the new one has thas would break monitoring setup by customers

So I should ensure that body is define too ?

Yes, this log will be useless if body isn't defined

@Juiced66
Copy link
Author

close due to duplication with #25

@Juiced66 Juiced66 closed this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants