Przy próbie zapisu do bazy pojawia się błąd
[2019-05-09T07:57:17.646Z] @firebase/database: FIREBASE WARNING: set at /tasks/-LeQaAIuYOW_B5JPnD5Q failed: permission_denied
W Firebase w zakładce Rules mam następujące reguły:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write;
}
}
}
Dokumentacja mówi o następujących:
{
"rules": {
"messages": {
".read": "auth != null",
".write": "auth != null"
}
}
}
Jednak przy próbie zapisu otrzymuje komunikat:
Błąd podczas zapisywania reguł – Line 1: mismatched input '{' expecting {'function', 'service', 'rules_version'}