Open-event-server: Reset password feature isn't sending any email

Created on 15 Jun 2018  路  14Comments  路  Source: fossasia/open-event-server

Describe the bug
The endpoint open-event-api-dev.herokuapp.com/v1/auth/reset-password isn't working. Even though it shows "Email Sent"

To Reproduce
Steps to reproduce the behavior:

  1. Try sending a POST request to open-event-api-dev.herokuapp.com/v1/auth/reset-password.
  2. Open the email account, for the email address which was used in the body.

Expected behavior
A mail with a token should be sent.

Additional context
screenshot from 2018-06-15 14-18-58

open-for-all

All 14 comments

Which email id is used to send this mail? Need to check Heroku app's configuration.

@schedutron Any updates ? It was working fine around 2 weeks ago. Now the mails are not getting sent. Checked the spam folder as well.

No, I'm stuck on a similar problem with email config in #4985. Once I figure it out, this will be solved as well.

I checked Heroku logs, and it's throwing Sendgrid key not defined error, so I need to define a Sendgrid key in Heroku's settings in its Postgres DB.

So what should I do - create a dummy email, create it's Sendgrid API key and post it to Heroku's settings? Or re-create the key for the existing email that is used?

Heroku wasn't logging useful information because exceptions were getting contained in the wrong manner, e.g, even if the email_from key was not defined, no error was raised. There were multiple keys undefined in Heroku settings, but I have fixed them now.

@srv-twry @mishuvs @CosmicCoder96 can you please confirm that email endpoints are working for you? I'll add proper exceptional handling by creating a different relevant issue and PR.

Heroku wasn't logging useful information because exceptions were getting contained in the wrong manner, e.g, even if the email_from key was not defined, no error was raised. There were multiple required keys undefined in Heroku settings, but I have fixed them now.

@srv-twry @mishuvs @CosmicCoder96 can you please confirm that email endpoints are working for you? I'll add proper exceptional handling by creating a different relevant issue and PR.

@schedutron I tried the same as in the screenshot above, again, but it didn't work. The response shows "Email Sent" but I can't find any email received. So it seems to be not working for me. Is it working for you?

@mishuvs Did you check in spam folder? It might go there, because initially I received the email in spam.

Got it! But the sender email is being shown as [email protected]. Shouldn't it be an eventyay email address?

@mishuvs Why ? You are using the development branch deployment. Not the production one.

Also, one more thing: I am getting this on clicking a reset password link I just received. Is it working for you?

screenshot from 2018-07-15 18-03-23

@mishuvs I'm getting that error too. Looking into it. It also popped up for email verification.

I have reconfigured Heroku dev server settings for front-end url, still 404 persists.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schedutron picture schedutron  路  4Comments

mariobehling picture mariobehling  路  4Comments

CosmicCoder96 picture CosmicCoder96  路  4Comments

rafalkowalski picture rafalkowalski  路  3Comments

Masquerade0097 picture Masquerade0097  路  3Comments