nhorvath / Pyrebase4

A simple python wrapper for the Firebase API. ⛺
258 stars 64 forks source link

KeyError: 'apiKey'` #70

Closed xlly-s closed 5 months ago

xlly-s commented 1 year ago

Hey there!

I keep getting this error and can't work out why, `Traceback (most recent call last): File "C:\Users\PC\Documents\FilmBuddy-Reborn-main\main.py", line 33, in firebase = pyrebase.initialize_app(firebaseConfig) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyrebase\pyrebase.py", line 29, in initialize_app return Firebase(config) ^^^^^^^^^^^^^^^^ File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyrebase\pyrebase.py", line 35, in init self.api_key = config["apiKey"]


KeyError: 'apiKey'`

Any help is thanked for.
arham-sayyed commented 1 year ago

can you please provide the code which is causing this issue? Most probably, your code is missing one of the config keys, apikey

nhorvath commented 5 months ago

closing old issue with no followup