Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_identity_fn : KeyError('email_verified') #155

Closed
renaudcerrato opened this issue Oct 25, 2023 · 3 comments
Closed

_identity_fn : KeyError('email_verified') #155

renaudcerrato opened this issue Oct 25, 2023 · 3 comments
Labels
waiting for customer response Issue is on hold awaiting more information from OP

Comments

@renaudcerrato
Copy link

renaudcerrato commented Oct 25, 2023

Using 0.1.1 on @identity_fn.before_user_signed_in(). I'm not even requesting that field:

@identity_fn.before_user_signed_in()
def signedin(event: identity_fn.AuthBlockingEvent) -> identity_fn.BeforeSignInResponse | None:
    user = event.data
    ...
2023-10-25 13:34:37.978 CEST
  File "/layers/google.python.pip/pip/lib/python3.11/site-packages/flask/app.py", line 2213, in __call__
2023-10-25 13:34:37.978 CEST
    return self.wsgi_app(environ, start_response)
2023-10-25 13:34:37.978 CEST
  File "/layers/google.python.pip/pip/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app
2023-10-25 13:34:37.978 CEST
    response = self.full_dispatch_request()
2023-10-25 13:34:37.978 CEST
  File "/layers/google.python.pip/pip/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
2023-10-25 13:34:37.978 CEST
    rv = self.dispatch_request()
2023-10-25 13:34:37.978 CEST
  File "/layers/google.python.pip/pip/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
2023-10-25 13:34:37.978 CEST
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
2023-10-25 13:34:37.978 CEST
  File "/layers/google.python.pip/pip/lib/python3.11/site-packages/functions_framework/__init__.py", line 130, in view_func
2023-10-25 13:34:37.978 CEST
    return function(request._get_current_object())
2023-10-25 13:34:37.978 CEST
  File "/layers/google.python.pip/pip/lib/python3.11/site-packages/firebase_functions/identity_fn.py", line 360, in before_user_signed_in_wrapped
2023-10-25 13:34:37.978 CEST
    return before_operation_handler(
2023-10-25 13:34:37.978 CEST
  File "/layers/google.python.pip/pip/lib/python3.11/site-packages/firebase_functions/private/_identity_fn.py", line 341, in before_operation_handler
2023-10-25 13:34:37.978 CEST
    _logging.error("Unhandled error", exception)
2023-10-25 13:34:37.978 CEST
Message: 'Unhandled error'
2023-10-25 13:34:37.978 CEST
Arguments: (KeyError('email_verified'),)
@exaby73
Copy link
Contributor

exaby73 commented Nov 7, 2023

Hello. Could you try on 0.1.2 and let me know if you still face this issue?

@exaby73 exaby73 added the waiting for customer response Issue is on hold awaiting more information from OP label Nov 7, 2023
@renaudcerrato
Copy link
Author

Sorry, we moved forward to NodeJs in the meantime 🤕

@exaby73
Copy link
Contributor

exaby73 commented Dec 18, 2023

I will close this issue for now. Feel free to reopen this issue if this this issue occurs again

@exaby73 exaby73 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for customer response Issue is on hold awaiting more information from OP
Projects
None yet
Development

No branches or pull requests

2 participants