Assault-OPS / FilmBuddy-Reborn

The all-new Film Buddy discord bot has been reborn! With the latest slash command features, Film Buddy is set to take off!
1 stars 1 forks source link

Key error,. #1

Open xlly-s opened 1 year ago

xlly-s commented 1 year ago

error

Hello!

I keep getting this error, any ideas on what it is?

Assault-OPS commented 1 year ago

In the Firebase Credentials i have defined a dictionary called firebaseConfig and that particular dictionary should contain the keys of all the authentication data of your firebase database, I have removed all of those keys for my security reasons. You might be getting the error because the firebaseConfig dictionary is empty. In order to fix it, create your database in Firebase, it should provide you the authentication details in the form of json, paste it in the dictionary.

xlly-s commented 1 year ago

In the Firebase Credentials i have defined a dictionary called firebaseConfig and that particular dictionary should contain the keys of all the authentication data of your firebase database, I have removed all of those keys for my security reasons. You might be getting the error because the firebaseConfig dictionary is empty. In order to fix it, create your database in Firebase, it should provide you the authentication details in the form of json, paste it in the dictionary.

Hey there, sorry for the very late reply. I have the credentials at last, but when I paste it in the dictionary it still says either the same, or apiKey not defined.

Am I right in putting it in the python script?

xlly-s commented 1 year ago

Update: Overcome that bit, but now im getting this:

2, in _do_call raise CommandInvokeError(self, e) from e discord.app_commands.errors.CommandInvokeError: Command 'movie' raised an exception: TypeError: object of type 'NoneType' has no len()

Any ideas?