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

"Logging output too large. Truncating output." #10

Open
SableRaf opened this issue Oct 7, 2022 · 1 comment
Open

"Logging output too large. Truncating output." #10

SableRaf opened this issue Oct 7, 2022 · 1 comment

Comments

@SableRaf
Copy link

SableRaf commented Oct 7, 2022

When the form is too large, the JSON gets too big for the Logger and the output gets truncated.

I've looked into saving a JSON from App Script to Google Drive but I don't have a patch to share yet.
This answer seems promising though: https://stackoverflow.com/a/52781036/2126791

If you happen to fix this, please post your code in the replies below, thanks!

@MiroPsota
Copy link

Might be still useful:
Ln 18

//Logger.log(JSON.stringify(result));
DriveApp.getRootFolder().createFile('Output.json', JSON.stringify(result), MimeType.PLAIN_TEXT);

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

No branches or pull requests

2 participants