-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Workflow: Waiting for User ResponseBlocked waiting for user response.Blocked waiting for user response.help: needs-triageIssue needs additional investigation/triaging.Issue needs additional investigation/triaging.type: bugNew bug reportNew bug report
Description
I had some problem in using react-native-firebase when I write any Query this error will be shown ,
So after Some looking of last commits i found out the issue is a validation in index.js
if (/[.#$\[\]'?]/g.test(path)) { throw new Error( "Paths must be non-empty strings and can't contain '.', '#', '$', '[', or ']'", ); }
Because First this Method will be Run
_syncServerTimeOffset() {
this.ref('.info/serverTimeOffset').on('value', snapshot => {
console.log(snapshot.val());
this._serverTimeOffset = snapshot.val();
});
}
and it Has => . from its Path so Error will be Shown .
after removing => . from regular expression the error will be fixed like this
if (/[#$\[\]'?]/g.test(path)) {
throw new Error(
"Paths must be non-empty strings and can't contain '.', '#', '$', '[', or ']'",
);
}
elder-software, fungilation and smaccoun
Metadata
Metadata
Assignees
Labels
Workflow: Waiting for User ResponseBlocked waiting for user response.Blocked waiting for user response.help: needs-triageIssue needs additional investigation/triaging.Issue needs additional investigation/triaging.type: bugNew bug reportNew bug report