Internal Server Error when logging in with Magic Link

I think this is related to I’m putting in this thread.

Unable to login using Magic Link. Looking at log file it seems like the core issue is my code, but the line in questions is only an import statement.

APP ID: CE2WOEY5XWM6YJXZ 
SESSION ID: P6Z75HUBX6TZCKFXXPCPQDZUUQADH7O4

Browser error / red box showed this


anvil.server.InternalError: Internal server error: 757cba6d75aa

at anvil-services/anvil/users/__init__.py, line 52
called from anvil-services/anvil/users/__init__.py, line 585
called from anvil-services/anvil/users/__init__.py, line 585
called from RegAppNavigation, line 38
called from reg_app_main, line 22
called from Views.WorkshopVw, line 8
called from reg_app_main, line 18

RegAppNavigation, line 38 -> self.cur_user = anvil.users.login_with_form()

1 Like

[Moved to new topic in Bug Reports]

Thanks for reporting this - at the very least it should be a more helpful error message! We will investigate.

Thanks @daviesian

Just an observation/more context.

I setup a DNS for custom URL for this app today.

The security stuff has not completed yet, so when you go to regapp.builded.com it still shows as an unsecured website.

I also created another environment for this app and ran it off the private URL and the Magic Link authentication worked, when using the private url.

Maybe the lack of certs is causing this error?

Cheers,
Tyler

Thanks Tyler, that was almost certainly the issue. Please can you try again, now that your certificates have been deployed?

@daviesian

Yep, it is working as expected today.

I am grateful for your attention on this.

Cheers,
Tyler