grahamearley / FirestoreGoogleAppsScript

A Google Apps Script library for accessing Google Cloud Firestore.
http://grahamearley.website/blog/2017/10/18/firestore-in-google-apps-script.html
MIT License
648 stars 109 forks source link

getDocuments has SyntaxError: Unexpected end of JSON input #149

Open kazutoshisugita opened 2 years ago

kazutoshisugita commented 2 years ago

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

LaughDonor commented 1 year ago

Too much data in response? Sounds like #136

kazutoshisugita commented 1 year ago

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

LaughDonor commented 1 year ago

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.