I am following a firebase tutorial . But I can not add .read and .write
.read
.write
You are adding rules to the wrong place. This is the reason for downvotes. This is a data structure, not your rule document.
Put json rules on the rules tab . . Here you must enter the rules. Please check.
In fact, this Firebase DB error is often caused by an outdated web page cache. All you have to do is refresh the Realtime Database webpage and then you can add your new values:
This is because a path that includes a key CANNOT have a "." period marks on this link .
Since all Firebase Realtime database data is stored as JSON objects, when creating your own keys, they must be in UTF-8 encoding, can contain no more than 768 bytes and cannot contain., $, #, [,], /, Or control ASCII characters 0-31 or 127. You also cannot use ASCII control characters in the values ββthemselves.
I wish this helps you.
And if you want to deal with the RULES, follow what Igor said. Best wishes.
Maybe you should log in to your account again.
The path to the Firebase database cannot contain some special characters, such as ".", "@", Etc., And first of all, you add the rule in the wrong place