FirestoreGoogleAppsScript
FirestoreGoogleAppsScript copied to clipboard
getDocuments has SyntaxError: Unexpected end of JSON input
Minimal code to reproduce the problem
var firestore = FirestoreApp.getFirestore(dateArray.client_email, dateArray.private_key, dateArray.project_id);
const documents = firestore.getDocuments("collection_name");
Expected Behavior
when i run this a month ago, this code was running collectlly but now its not
Library Version:
33
Too much data in response? Sounds like #136
thank you for your reply, what the maximum amount of data that is available to pull from firebase by FirestoreApp?
Too much data in response? Sounds like #136
Not sure, but you can use the query functionally of this library to limit results and see what works for you. You can then drop the limit a little more and catch your results.