question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashing when attempting to send

See original GitHub issue

I’m getting a crash when I attempt to send the file. I’ve attempted to send via a manually defined SMTP and direct to MX and I get this error

restify listening at http://[::]:5000
14:50:47.200Z  INFO youtransfer: Disabled cleanup schedule
14:50:57.980Z  INFO youtransfer: Disabled cleanup schedule
/root/YouTransfer/node_modules/nodemailer/lib/mailer/index.js:45
        this.transporter.mailer = this;
                                ^

TypeError: Cannot set property 'mailer' of undefined
    at new Mail (/root/YouTransfer/node_modules/nodemailer/lib/mailer/index.js:45:33)
    at Object.module.exports.createTransport (/root/YouTransfer/node_modules/nodemailer/lib/nodemailer.js:52:14)
    at /root/YouTransfer/lib/youtransfer.js:83:34
    at /root/YouTransfer/lib/settings.js:93:4
    at NodeCache.module.exports.NodeCache.get (/root/YouTransfer/node_modules/node-cache/lib/node_cache.js:101:11)
    at NodeCache.get (/root/YouTransfer/node_modules/node-cache/lib/node_cache.js:12:59)
    at Settings.get (/root/YouTransfer/lib/settings.js:65:13)
    at Object.get (/root/YouTransfer/lib/youtransfer.js:82:18)
    at /root/YouTransfer/lib/youtransfer.js:284:28
    at /root/YouTransfer/node_modules/nunjucks/src/environment.js:23:23
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! youtransfer@1.1.0 start: `gulp clean && gulp dist && node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the youtransfer@1.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-09-05T14_51_23_128Z-debug.log

Can anyone help?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
scamhajicommented, Oct 26, 2018

In the meantime, I managed to make it work by replacing line 83 in file lib/youtransfer.js: Replace: var transporter = nodemailer.createTransport(); with: var transporter = null; It worked for me. The nodemailer API has changed.

1reaction
Filmtangentcommented, Oct 3, 2018

Unfortunately not, I’ve had to put a hold on my project for a while but will likely be able to do some more work on it in November.

On Wed, Oct 3, 2018 at 1:32 PM LouBNielsen notifications@github.com wrote:

Any luck with this? @Filmtangent https://github.com/Filmtangent @lencell https://github.com/lencell

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/YouTransfer/YouTransfer/issues/194#issuecomment-426620321, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ2LYnlPa8nuPzhECD5bBwaTJspp1QCrks5uhK5hgaJpZM4WbFgm .

Amar

Read more comments on GitHub >

github_iconTop Results From Across the Web

Outlook crashes when sending emails with nonexistent ...
This problem occurs when you are using a POP3 email account, and the default delivery location for this account references a nonexistent folder....
Read more >
Fix: Outlook Intermittently Crashes While Composing Email or ...
Method 1: Switch to Safe Mode ... To investigate possible add-in issues, try opening Outlook in safe mode. Follow these steps: ... If...
Read more >
Fix Outlook crashes when sending an email - The Windows Club
If Outlook crashes on your system, you should try to troubleshoot it in the Safe Mode. This will help you identify the faulty...
Read more >
Outlook Crashes on Send & Receive in Outlook 2016, 2013 ...
Manual Methods to Fix “Outlook Crashes on Send/ Receive” · 1. Change Send/Receive Settings · 2. Turn off Antivirus Program Scanner · 3....
Read more >
Fix Outlook Crashes When Replying to Email
Why does Outlook crash while replying to an email? · Go to the Control Panel and click on the Mail option. · Now,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found