Firebase rules error

I’m wondering why I’m getting the error. what should i do

@Crypto_Ailesi as the error message says $user_id is an unknown variable, check that

I understood the description of the error but I don’t know what to do and what to check

Maybe this can help

I fixed the error by typing this way, but this time I’m getting permission error even though I’m logged in with google
yeni hata

On companion you will get the error. Try exporting it.

I don’t use companion

According to your firebase rules, there should be no error in the live version of the app.

I wrote the rules for all the main headings, do I need to patch them separately in the subheadings?

başlık

{
“rules”: {
“spot”: {
“.read”: “auth != null”,
“$user_id”: {
“.write”: “auth != null && $user_id === auth.uid”
}
}
,“guncel”: {
“.read”: “auth != null”,
“$user_id”: {
“.write”: “auth != null && $user_id === auth.uid”
}
}
,“bildirim”: {
“.read”: “auth != null”,
“$user_id”: {
“.write”: “auth != null && $user_id === auth.uid”
}
}
,“onay1”: {
“.read”: “auth != null”,
“$user_id”: {
“.write”: “auth != null && $user_id === auth.uid”
}
}
,“onay2”: {
“.read”: “auth != null”,
“$user_id”: {
“.write”: “auth != null && $user_id === auth.uid”
}
}
,“onay3”: {
“.read”: “auth != null”,
“$user_id”: {
“.write”: “auth != null && $user_id === auth.uid”
}
}
,“onay4”: {
“.read”: “auth != null”,
“$user_id”: {
“.write”: “auth != null && $user_id === auth.uid”
}
}
,“onay5”: {
“.read”: “auth != null”,
“$user_id”: {
“.write”: “auth != null && $user_id === auth.uid”
}
}
}
}

I found that the problem was caused by the read part. but since I couldn’t find a solution, I had to write true in the read section, it’s fixed for now. I’m waiting for the answers of those who know the solution :slight_smile:

Which tag you’re getting and from which project bucket?
Show your full data structure.

Anyone can read it, it’s fine but I can’t write even though I’m logged in with google.
gunceell

I don’t know where to look for these.

(post deleted)

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