graphile / starter

Opinionated SaaS quick-start with pre-built user account and organization system for full-stack application development in React, Node.js, GraphQL and PostgreSQL. Powered by PostGraphile, TypeScript, Apollo Client, Graphile Worker, Graphile Migrate, GraphQL Code Generator, Ant Design and Next.js
https://graphile-starter.herokuapp.com
Other
1.74k stars 219 forks source link

Not able to send verification emails in development #250

Open kuttim opened 3 years ago

kuttim commented 3 years ago

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
benjie commented 3 years ago

I'm not able to reproduce this.

Screenshot_20210222_110313

benjie commented 3 years ago

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

kuttim commented 3 years ago

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

kuttim commented 3 years ago

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

benjie commented 3 years ago

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

ryanblakeley commented 2 years ago

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

benjie commented 2 years ago

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

ryanblakeley commented 2 years ago

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.

benjie commented 2 years ago

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