auth icon indicating copy to clipboard operation
auth copied to clipboard

BLOCKER: Internal Server Error when Registering with Email Address!

Open nelsonic opened this issue 3 years ago • 5 comments

Just tried to use my email address to register: https://auth.dwyl.com/auth/loginregister and got: image

Need to investigate this as our highest priority. Related to: https://github.com/dwyl/mvp/issues/281

nelsonic avatar Jan 25 '23 11:01 nelsonic

@nelsonic would it be possible to have access to the Fly auth app? I can have a look at the logs

SimonLab avatar Jan 25 '23 13:01 SimonLab

Invite sent. ✅

GOTO: https://fly.io/apps/authprod 🙏

nelsonic avatar Jan 25 '23 13:01 nelsonic

image

out of memory.?

I'll try to have a look at what can cause this issue. I still think we need to simplify the auth app (see https://github.com/dwyl/auth/issues/240) especially if it's going to be used with Flutter.

SimonLab avatar Jan 25 '23 15:01 SimonLab

This issue might be linked to the email application not being available anymore, https://dwylmail.herokuapp.com/

So all the code to send emails won't work: https://github.com/dwyl/auth/blob/f34305c67c5ed7d98ee85418e3838f268bc513e0/lib/auth/email.ex#L24-L40

SimonLab avatar Jan 25 '23 21:01 SimonLab

@SimonLab thanks for investigating. 🔍 The memory issue is lame. 😕 Wonder if it's an OTP garbage collection issue. 🤷‍♂️ Indeed not having the email (heroku) server working is probably the reason it's failing. 🤦‍♂️

100% agree on simplifying auth. It's constantly in the back of my mind. 💭 Along with a million other things ... 🙄 The only thing keeping me from just diving straight in to rewriting auth in Phoenix v1.7 is the fact that I really don't like the Ecto syntax. It feels so cumbersome when compared to SurrealDB https://github.com/dwyl/technology-stack/issues/104 I hate having to specify the schema in multiple places it feels "dirty". I know that if I just embraced Ecto I could get over the hurdles.

Ultimately we need to ship. :shipit: 💭 And to do that, I need to go sleep. 🛌 BRB. ⏳

nelsonic avatar Jan 26 '23 00:01 nelsonic