RomainVialard / FirebaseApp

Google Apps Script binding for Firebase Realtime Database
Apache License 2.0
116 stars 30 forks source link

Using "error" as key in Firebase #16

Closed SimonDebray closed 5 years ago

SimonDebray commented 5 years ago

Currently, if you have a key named "error" in Firebase, when fetching it, the lib return an error 200 (Error: 200 - [object Object]).

JeanRemiDelteil commented 5 years ago

Fix would be: Also check for HTTP return code, if equal to 200, then it's not error

I think all Firebase real error return with other HTTP codes (401, etc..)