starter icon indicating copy to clipboard operation
starter copied to clipboard

Not able to send verification emails in development

Open kuttim opened this issue 4 years ago • 9 comments

When I log in to account, go to settings and press resend verification it seems to be hanging on console side and Parser being undefined, am I doing something wrong? Here's a error log:

(RUN) @app/worker: [worker(worker-412045df0ac99677b2)] ERROR: Failed task 13 (send_email) with error Cannot read property 'Parser' of undefined (2.18ms):
(RUN) @app/worker:   TypeError: Cannot read property 'Parser' of undefined

kuttim avatar Feb 19 '21 01:02 kuttim

I'm not able to reproduce this.

Screenshot_20210222_110313

benjie avatar Feb 22 '21 11:02 benjie

Maybe it's a dependency issue. Try using yarn to install the versions in the lockfile.

benjie avatar Feb 22 '21 11:02 benjie

Will try to re-install modules with yarn and updating this.

kuttim avatar Feb 22 '21 17:02 kuttim

I recloned the repository on master branch used yarn to install the modules but same issue occurs, what version of node are you running?

kuttim avatar Feb 22 '21 18:02 kuttim

Node v14.11 running Graphile Starter from the main branch.

benjie avatar Feb 22 '21 21:02 benjie

i'm not getting the same error as OP re: TypeError: Cannot read property 'Parser' of undefined ; but cloning the repo and running without any changes, the send_email task does seem to fail. i'm using node v14.18. everything else seems to be working otherwise.

image

ryanblakeley avatar Mar 06 '22 21:03 ryanblakeley

Presumably that means there's an issue between you and ethereal.email, perhaps a firewall or similar?

benjie avatar Mar 07 '22 10:03 benjie

it looks like other people are seeing the same or a similar issue https://github.com/nodemailer/nodemailer/issues/1096#issuecomment-1060148585

i hadn't heard of ethereal, but i like the idea. i can send an email to my ethereal address from macOS mail, gmail in the browser, and from a random production web app. even though their service status site is not available, it appears to work with those email senders. maybe it's an issue with nodemailer or something about running it locally.

ryanblakeley avatar Mar 07 '22 22:03 ryanblakeley

Feel free to switch it out for an alternative nodemailer transport, I believe they have a test one that could be suitable

benjie avatar Mar 07 '22 23:03 benjie