dwyl / auth

🚪 🔐 UX-focussed Turnkey Authentication Solution for Web Apps/APIs (Documented, Tested & Maintained)
https://authdemo.fly.dev
GNU General Public License v2.0
130 stars 9 forks source link

BLOCKER: Internal Server Error when Registering with Email Address! #264

Open nelsonic opened 1 year ago

nelsonic commented 1 year ago

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

SimonLab commented 1 year ago

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

nelsonic commented 1 year ago

Invite sent. ✅

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

SimonLab commented 1 year ago

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 commented 1 year ago

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

nelsonic commented 1 year ago

@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. ⏳