uwasystemhealth / IndEAAv2

A web application that streamlines course review by industry advisory panels. A complete rewrite of https://github.com/uwasystemhealth/IndEAA
4 stars 1 forks source link

[BUG] User not registered in the system trying to login via google results in a 500 #102

Open sentry-io[bot] opened 2 years ago

sentry-io[bot] commented 2 years ago

This could be a feature not a bug. (this bug prevents user that is not appointed as a coordinator or a reviewer in being able to access the system)

Sentry Issue: INDEAA-BACKEND-4

EmailAddress.DoesNotExist: EmailAddress matching query does not exist.
  File "authentication/utils.py", line 39, in pre_social_login
    email_address = EmailAddress.objects.get(email__iexact=email)
  File "django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "django/db/models/query.py", line 435, in get
    raise self.model.DoesNotExist(

BdbQuit: 
(5 additional frame(s) were not displayed)
...
  File "allauth/socialaccount/helpers.py", line 146, in complete_social_login
    get_adapter(request).pre_social_login(request, sociallogin)
  File "authentication/utils.py", line 55, in pre_social_login
    logger.info("No email address found for social login %s", sociallogin)
  File "authentication/utils.py", line 55, in pre_social_login
    logger.info("No email address found for social login %s", sociallogin)
  File "bdb.py", line 88, in trace_dispatch
    return self.dispatch_line(frame)
  File "bdb.py", line 113, in dispatch_line
    if self.quitting: raise BdbQuit

[IndEAA_0.0.0] Anonymous User: Unknown Error Occurred: