# \[Solved\] Can’t save data to or read from Firebase database

**URL:** <https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [May 12, 2020, 8:31pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410 "2020-05-12T20:31:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahmoudgamal\_007pz9b](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mahmoudgamal\_007pz9b](https://community.thunkable.com/u/mahmoudgamal_007pz9b)\
**Post date:** [May 12, 2020, 8:31pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/1 "2020-05-12T20:31:58Z")

</div>

'o.default.get(this.settings).database is not a function. (In ‘o.default.get.(this.settings).database()’, ‘o.default.get(this.settings).database’ is undefined)  
The above error is showing to me.  
How can I fix this, any idea?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 12, 2020, 10:37pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/2 "2020-05-12T22:37:36Z")

</div>

Hey @mahmoudgamal_007pz9b

Can you try doing a hard refresh in your web browser and make sure that you’re running the latest version of Thunkable Live (currently v186)

> <https://play.google.com/store/apps/details?id=com.thunkable.live>
>
> Thunkable is the platform where anyone can build their own apps on Android and iOS. 
> 
> Use the Thunkable app to accelerate app development with a cool feature called live testing. Live testing is the ability to change and update your app in real-time with the changes you make on the platform (x.thunkable.com)
> 
> Just login to the app and see your changes live!
> 
> If you think it, you can Thunk it...

Let us know whether or not that works!

---

<div class="post-metadata">

**Author:** ![mahmoudgamal\_007pz9b](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mahmoudgamal\_007pz9b](https://community.thunkable.com/u/mahmoudgamal_007pz9b)\
**Post date:** [May 12, 2020, 10:38pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/3 "2020-05-12T22:38:11Z")

</div>

reference.child failed: first argument was an invalid path = “”

Ive downloaded v186 and found this error. any idea ?

---

<div class="post-metadata">

**Author:** ![mahmoudgamal\_007pz9b](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mahmoudgamal\_007pz9b](https://community.thunkable.com/u/mahmoudgamal_007pz9b)\
**Post date:** [May 12, 2020, 10:42pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/4 "2020-05-12T22:42:00Z")

</div>

ive just downloaded v186 but there is another error appears "reference.child failed: first argument was an invalid path = “”

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 12, 2020, 10:45pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/5 "2020-05-12T22:45:12Z")

</div>

Where is that occuring? Thunkable Live??

Can you send us a screenshot?

Thanks

---

<div class="post-metadata">

**Author:** ![mahmoudgamal\_007pz9b](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mahmoudgamal\_007pz9b](https://community.thunkable.com/u/mahmoudgamal_007pz9b)\
**Post date:** [May 13, 2020, 10:24pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/6 "2020-05-13T22:24:10Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/c/fcd1fcddbadcff44941433c684ea1de983c21944.jpeg)

---

<div class="post-metadata">

**Author:** ![mahmoudgamal\_007pz9b](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mahmoudgamal\_007pz9b](https://community.thunkable.com/u/mahmoudgamal_007pz9b)\
**Post date:** [May 13, 2020, 10:27pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/7 "2020-05-13T22:27:30Z")

</div>

Thank you for your effort Domhnall, I removed the join block and left the key with only one destination but I’ve got this error PERMISSION\_DENIED: permission denied

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 13, 2020, 11:32pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/8 "2020-05-13T23:32:06Z")

</div>

What are your firebase rules?

---

<div class="post-metadata">

**Author:** ![mahmoudgamal\_007pz9b](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mahmoudgamal\_007pz9b](https://community.thunkable.com/u/mahmoudgamal_007pz9b)\
**Post date:** [May 13, 2020, 11:47pm UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/9 "2020-05-13T23:47:50Z")

</div>

Yes I got you, thanks.  
But for the error in the screen shot, can you help me in that. Thanks

---

<div class="post-metadata">

**Author:** ![mahmoudgamal\_007pz9b](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mahmoudgamal\_007pz9b](https://community.thunkable.com/u/mahmoudgamal_007pz9b)\
**Post date:** [May 14, 2020, 12:02am UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/10 "2020-05-14T00:02:02Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/8/d85f285f141b8da5299f1b2fabc708cc0f19ba26.jpeg)

I’m trying to add the user email in the storage under the key but it is giving the first error in the post.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 14, 2020, 12:29am UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/11 "2020-05-14T00:29:43Z")

</div>

Firebase is picky about the characters it allows in a key path name. Filter out the @ and . Then try again.

So instead of [Jared.gibb@gmail.com](mailto:Jared.gibb@gmail.com)  
I would use

Jaredgibbgmailcom

---

<div class="post-metadata">

**Author:** ![mahmoudgamal\_007pz9b](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mahmoudgamal\_007pz9b](https://community.thunkable.com/u/mahmoudgamal_007pz9b)\
**Post date:** [May 14, 2020, 11:35am UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/12 "2020-05-14T11:35:01Z")

</div>

It worked, Thank you very much Jared

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 14, 2020, 11:36am UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/13 "2020-05-14T11:36:05Z")

</div>

Glad to help. Could you mark that as a solution to help other community members?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:26am UTC](https://community.thunkable.com/t/solved-can-t-save-data-to-or-read-from-firebase-database/565410/14 "2024-11-08T11:26:48Z")

</div>


