Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Setting document in Firestore collection throws JSONException error #4812

Open
1 of 3 tasks
irving-luna opened this issue Aug 1, 2024 · 1 comment
Open
1 of 3 tasks

Comments

@irving-luna
Copy link

I'm submitting a ... (check one with "x")

Current behavior:

Using firebaseX plugin, in specific the wrapper function setDocumentInFirestoreCollection the set operation fails showing in the logcat this message
8-01 09:34:10.220 5197 5758 E FirebasePlugin: org.json.JSONException: Value null at 3 of type org.json.JSONObject$1 cannot be converted to boolean

Expected behavior:

Set the document in firestore

Steps to reproduce:

Attempt to set a document as shown bellow

this.firebaseX.setDocumentInFirestoreCollection(
    "documentId",
    { "foo": "bar" },
    "collectionName",
    () => { console.log("Document added") },
    (err) => { console.log("Error adding document", err) })

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Ionic:

   Ionic CLI                     : 6.19.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.7.5
   @angular-devkit/build-angular : 13.3.11
   @angular-devkit/schematics    : 13.3.11
   @angular/cli                  : 13.3.11
   @ionic/angular-toolkit        : 6.1.0

Cordova:

   Cordova CLI       : 11.0.0 ([email protected])
   Cordova Platforms : android 9.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 9 other plugins)

Utility:

   cordova-res : not installed globally
   native-run  : 2.0.1

System:

   Android SDK Tools : 26.1.1 (/Users/user/Library/Android/sdk)
   NodeJS            : v18.20.3 (/usr/local/bin/node)
   npm               : 10.7.0
   OS                : macOS Unknown
   Xcode             : Xcode 15.4 Build version 15F31d
Copy link

github-actions bot commented Oct 1, 2024

There has been no recent activity and this issue has been marked inactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant