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

getDocuments has SyntaxError: Unexpected end of JSON input #149

Open
kazutoshisugita opened this issue Nov 25, 2022 · 3 comments
Open

getDocuments has SyntaxError: Unexpected end of JSON input #149

kazutoshisugita opened this issue Nov 25, 2022 · 3 comments
Labels

Comments

@kazutoshisugita
Copy link

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
Copy link
Collaborator

LaughDonor commented Nov 25, 2022

Too much data in response? Sounds like #136

@kazutoshisugita
Copy link
Author

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
Copy link
Collaborator

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.

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

No branches or pull requests

2 participants