Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Error exporting collection to Library #12996

Closed
rfos opened this issue Apr 25, 2022 · 0 comments
Closed

Error exporting collection to Library #12996

rfos opened this issue Apr 25, 2022 · 0 comments
Labels

Comments

@rfos
Copy link

rfos commented Apr 25, 2022

Describe the Bug

Hello,

I'm trying to export a collection and save it as .CSV in my library but it shutdown the application because I have no smtp/send mail configured on my environment. (Is it mandatory?)

I believe it happens because the application try to send a notification when the export is done. Would be possible set up the notification to be conditional it sendmail/smtp is configured or not?

To Reproduce

Choose export to Library instead of Download File

2022-04-25 17_18_45- env - Untitled (Workspace) - Visual Studio Code

Errors Shown

`17:07:19 ✨ request completed POST 204 /utils/export/employees 30ms
17:07:20 🚨 Couldn't export employees: spawn /usr/sbin/sendmail ENOENT
Error: spawn /usr/sbin/sendmail ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
node:internal/errors:464
ErrorCaptureStackTrace(err);
^

Error: spawn /usr/sbin/sendmail ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn /usr/sbin/sendmail',
path: '/usr/sbin/sendmail',
spawnargs: [ '-i', '-f', 'no-reply@directus.io', 'email@domain.com ]
}
The terminal process "C:\Windows\System32\cmd.exe /d /c npm run start" terminated with exit code: 1.`

What version of Directus are you using?

9.9.1

What version of Node.js are you using?

16.14.2

What database are you using?

MS SQL

What browser are you using?

Chrome

How are you deploying Directus?

locally - Windows 11

@directus directus locked and limited conversation to collaborators Apr 25, 2022
@azrikahar azrikahar converted this issue into discussion #12997 Apr 25, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants