Firestore GetDocument example not working but others like create, patch they work fine. #113
Replies: 4 comments 2 replies
-
You should follow the issue template by providing the minimum clean code. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug Among the examples you provided, CreateDocuments, PathDocument works well without any problems. To Reproduce
} Expected behavior IDE and its version:
**Test devices ESP32 Dev Module Additional context Your getDocument method is The last two parameters don't need? |
Beta Was this translation helpful? Give feedback.
-
This is due to accidently zero length payload was sent to TCP client and causes the error in ESP32. You can try this gist By replace this FB_TCP_Client.cpp with the original file in folder src/wcs/esp32 The library update is not available at this time and will be available when I finished the internal update. |
Beta Was this translation helpful? Give feedback.
-
For the get document function's arguments, you can read the Firestore document how to use it. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
The Firebase-ESP-Client is testing with a couple of my ESP32. Firebase's Firestore DB is ready and also user's email and pw are set too.
Among the examples you provided, CreateDocuments, PathDocument works well without any problems.
But in GetDocument,
if (Firebase.Firestore.getDocument(&fbdo, FIREBASE_PROJECT_ID, "", documentPath.c_str(), mask.c_str()))
Serial.printf("ok\n%s\n\n", fbdo.payload().c_str());
else
Serial.println(fbdo.errorReason());
If I run the getDocument method, I got this error.
Get a document... Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled
Your getDocument method is
bool FB_Firestore::getDocument(FirebaseData *fbdo, const char *projectId, const char *databaseId, const char *documentPath, const char *mask, const char *transaction, const char *readTime)
The last two parameters don't need?
All works fine but is the only getDocument is not working on my end? it's weird. Any clue for this?
To Reproduce
Firestore/GetDocument/GetDocument.ino
IDE and its version:
Test devices
Beta Was this translation helpful? Give feedback.
All reactions