#98 Error: 3 INVALID_ARGUMENT: Log entry with size 6.23M exceeds maximum size of 256.0K
See original GitHub issueEnvironment details
- OS: Ubuntu Xenial
- Node.js version: v8.11.2
@google-cloud/logging-bunyan
version: 0.9.5
Steps to reproduce
- Create a big object bigger than 256ko
- logger.info(object, message);
It throws an error when it’s happening and sometimes stop my node process
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
how did you do this? we’re sending a JSON, so you can’t really truncate it (will invalidate the JSON)
This is not coming from grpc-js, but from the logging server. This page says that, regardless of the batch size limit, the size of each entry cannot exceed 256K. This looks like the stackdriver API limitation, not a client library issue.
I’ll close this for now, feel free to reopen if you have any questions! Thanks 😃