# Cloud Variable not uploaded on the Firebase DB

**URL:** https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582
**Category:** Questions about Thunkable X
**Created:** [June 26, 2023, 1:46am UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582 "2023-06-26T01:46:45Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![ayaanaraza9fb](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@ayaanaraza9fb](https://community.thunkable.com/u/ayaanaraza9fb)
#### Post date: [June 26, 2023, 1:46am UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/1 "2023-06-26T01:46:45Z")

</div>

Hello everyone

I am new to thunkable and I am playing around with the variables and running into an issue. I am using cloud variable where I am trying to save an email/password to Firebase DB. I created an account on Firebase and linked the API Key/DB URL. But when I try to save the email/password to the firebase DB, I dont see the entry being saved.

Any help is appreciated.

Thanks

AR

---

<div class="post-metadata">

### Author: ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)
#### Post date: [June 26, 2023, 1:53am UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/2 "2023-06-26T01:53:09Z")

</div>

It might be an issue with credentials, that you have entered in thunkable for firebase DB,  
And why are you using API to store this simple data, there is the cloud variable block in thunkable, [see this documentation](https://docs.thunkable.com/variables)  
Please provide link or screenshot of your app.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [June 26, 2023, 2:10am UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/3 "2023-06-26T02:10:39Z")

</div>

The documentation is lacking in details but if you watch the video about Cloud Variables there, it provides much more of those details: [Variables - Thunkable Docs](https://docs.thunkable.com/variables#cloud-variables).

---

<div class="post-metadata">

### Author: ![ayaanaraza9fb](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@ayaanaraza9fb](https://community.thunkable.com/u/ayaanaraza9fb)
#### Post date: [June 26, 2023, 4:41am UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/4 "2023-06-26T04:41:20Z")

</div>

Thank you for your feedback

Below is the screen shot from design block

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/6/1608ac7fba93ede7f6efa47521ae5fbc77db41a7.png)

Block code for Register Page

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/5/153ebdc8ba4d904628e0021515f5b25a0b57f780.png)

Block code for Login page.

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

I copy pasted the API key/DB URL from firebase.

Thanks

AR

---

<div class="post-metadata">

### Author: ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)
#### Post date: [June 26, 2023, 8:22am UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/5 "2023-06-26T08:22:42Z")

</div>

😃 😃 😃 Ohh, i see  
in your problem, you said that you can’t see entry being saved.  
And after seeing your code, i think the issue might be with the place where you are seeing the users, i think you are seeing them on your RTDB or firestore, that’s wrong 🚫 🙅‍♀️ 🙅‍♂️

 ![Go to authentication page of your console project, to see about authentications](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/b/eb3e5122c01c8ebb9d7b93530829e69123755172.png)  
If this was not the solution, then i think you might have not entered the API key and address of your Database at correct place in thunkable:

1. Go to settings of your app
2. Scroll down and u will find a place to enter you firebase settings like API Key and Database URL.
3. Fill them correctly and try again.  
If this also not helped then please reply and send some screenshots.

---

<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: [June 26, 2023, 12:20pm UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/6 "2023-06-26T12:20:45Z")

</div>

FB rules are the likely culprit here.

How are your rules configured. Check out [this guide](https://medium.com/@juliomacr/10-firebase-realtime-database-rule-templates-d4894a118a98) to getting started

---

<div class="post-metadata">

### Author: ![ayaanaraza9fb](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@ayaanaraza9fb](https://community.thunkable.com/u/ayaanaraza9fb)
#### Post date: [June 26, 2023, 1:20pm UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/7 "2023-06-26T13:20:46Z")

</div>

Hello everyone

I have set the rules in the firebase DB as follows.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/d/1d2268dd87dbfd4754016ab5851e6181e39bd9df.png)

I copied the apikey/fb db from here

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/0/a0b01843a42edcb67e502869ff4a39db9ab9e151.png)

I have also set the authentication signin method as follows.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/5/75b29151fa4313bd7adf6b1e0656bf9edeb4a37f.png)

Thanks a lot for your help

AR

---

<div class="post-metadata">

### Author: ![ayaanaraza9fb](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@ayaanaraza9fb](https://community.thunkable.com/u/ayaanaraza9fb)
#### Post date: [June 26, 2023, 1:25pm UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/8 "2023-06-26T13:25:51Z")

</div>

Hello

I was checking to see if there are any users added in firebase DB here.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c4852456f5f6fb645dab0ff070591f0ba6b1a1de.png)

I have added the api/fb db at the following code.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a5f879a052811157ac2a2c4895d7aa5a63a529f0.png)

Thanks

AR

---

<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: [June 26, 2023, 6:33pm UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/9 "2023-06-26T18:33:30Z")

</div>

Hello @ayaanaraza9fb welcome to the community  
Could you please try to use the advanced block and show on a label the error?  
(To find these options right-click on the block)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8ebad9bd57fd60cc633fc36f00037f2607043485.png)

---

<div class="post-metadata">

### Author: ![ayaanaraza9fb](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@ayaanaraza9fb](https://community.thunkable.com/u/ayaanaraza9fb)
#### Post date: [June 26, 2023, 6:59pm UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/10 "2023-06-26T18:59:32Z")

</div>

Hello @ioannis

Thanks for the help. This is what I got after making the changes

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/1/f138bb5a98564778c48b7be0518276809685eec1.png)

AR

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [June 27, 2023, 4:05am UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/11 "2023-06-27T04:05:51Z")

</div>

It says your email address is badly formatted. If you Google shortest Gmail address, you’ll find that you need to have at least 6 characters before the @ symbol. See [Create a username - Gmail Help](https://support.google.com/mail/answer/9211434?hl=en#:~:text=Choose%20a%20username%206%E2%80%9330,letters%2C%20numbers%2C%20or%20symbols).

---

<div class="post-metadata">

### Author: ![ayaanaraza9fb](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@ayaanaraza9fb](https://community.thunkable.com/u/ayaanaraza9fb)
#### Post date: [June 27, 2023, 5:09am UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/12 "2023-06-27T05:09:27Z")

</div>

Hello everyone

I tried different length for the email address and it did not work. Here is an example

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/e/5e366977406ed54066a241913604f5573eccf22f.png)

Thanks

AR

---

<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: [June 27, 2023, 7:39pm UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/13 "2023-06-27T19:39:20Z")

</div>

Hello @ayaanaraza9fb!  
Thanks for sharing the error message.  
I checked your project, you are adding the email as a password and the password as an email because you named the components the opposite of what the hint is.

---

<div class="post-metadata">

### Author: ![ayaanaraza9fb](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@ayaanaraza9fb](https://community.thunkable.com/u/ayaanaraza9fb)
#### Post date: [June 27, 2023, 9:31pm UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/14 "2023-06-27T21:31:54Z")

</div>

> [@ioannis](#):
>
> I checked your project, you are adding the email as a password and the password as an email because you named the components th

Hello @ioannis - thank you very much for your help and catching the issue. I changed it and it works now.

I really appreciate all the help from the community.

AR

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [September 25, 2023, 9:32pm UTC](https://community.thunkable.com/t/cloud-variable-not-uploaded-on-the-firebase-db/2482582/15 "2023-09-25T21:32:05Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
