amzker / chatapp-godot-firebase

Chatapp in godot 4 using Firebase
1 stars 0 forks source link

Getuserdata return null #1

Closed duonghieu7104 closed 7 months ago

duonghieu7104 commented 7 months ago

i don't know where the problem lies, because i logged in successfully but when getuserdata it returns null

05-02-2024screenshot-00-14-53-375 05-02-2024screenshot-00-15-12-537

amzker commented 7 months ago

print req and chats

i think because there is no data in your firebase database.

it's mistake in my code , as i made this code after there was data in realtime database, i overlooked it. just add this if retrned data is null then pass.

now send messege , this way everything will be solved

duonghieu7104 commented 7 months ago

print req and chats

i think because there is no data in your firebase database.

it's mistake in my code , as i made this code after there was data in realtime database, i overlooked it. just add this if retrned data is null then pass.

now send messege , this way everything will be solved

I have corrected that error, thank you very much