Firebase - add database rules - Path contains invalid characters

I am following a firebase tutorial . But I can not add .read and .write

enter image description here enter image description here

+8
firebase firebase-database firebase-security firebase-realtime-database
source share
5 answers

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. enter image description here

+4
source share

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:

enter image description here

+25
source share

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.

+1
source share

Maybe you should log in to your account again.

0
source share

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

-2
source share

All Articles