firebase-admin-python icon indicating copy to clipboard operation
firebase-admin-python copied to clipboard

One user is removed from database when the debugger hits a breakpoint.

Open mastah7991 opened this issue 3 years ago • 4 comments

Hello! :D I have very weird problem. One user is removed from my database when the debugger hits a breakpoint.

  • Operating System version: Windows 11
  • Firebase SDK version: 5.4.0 and 4.5.2
  • Firebase Product: auth
  • Python version: 3.8.12
  • Pycharm version: 2021.2.3 Professional Edition Build 212.5457.59
  • Pip version: 21.3.1

https://drive.google.com/file/d/1Pn4vHd_87C5pweNzh8JvYKkoNvagiNz4/view?usp=sharing

Relevant Code:

import firebase_admin
from firebase_admin import auth

firebase_admin.initialize_app()

if __name__ == '__main__':
    users_claims = {x.uid: x.custom_claims for x in auth.list_users().iterate_all().items}

    for user_id, claims in users_claims.items():
        print(user_id)

    print('BP')
    print([x.uid for x in auth.list_users().iterate_all().items])

mastah7991 avatar Oct 06 '22 16:10 mastah7991

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Oct 06 '22 16:10 google-oss-bot

Hi @mastah7991, thank you for filing this issue. Are you testing this on a production project or on the emulator? Just to double check, could you confirm that the user records are also removed from your project (on the console or on the emulator UI) when this happens? Thanks.

lahirumaramba avatar Oct 18 '22 21:10 lahirumaramba

It happened on a production project. I can confirm that my account has been removed from our development environment. our plan: Blaze

I can record another video tomorrow to show it

mastah7991 avatar Oct 19 '22 08:10 mastah7991

https://drive.google.com/file/d/10WYk855n39mzoHcIS1QQKns0XnI69Cdt/view?usp=sharing

mastah7991 avatar Oct 21 '22 09:10 mastah7991