Large request payload crashing API #736
Labels
api: logging
Issues related to the googleapis/nodejs-logging-bunyan API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I am having the exact same issue described here: #14
Throughout the codebase, occasionally (and accidentally) I am logging very large entries, and encountering an exception which crashes the server:
I am using the logging-bunyan Express middleware as follows:
It doesn't look like I'm able to pass in the arguments to this middleware as per the solution described here: googleapis/gax-nodejs#157 (comment)
maxEntrySize also doesn't seem to properly truncate.
Ideally, I don't care as much about truncating; I just want to properly handle the exception and not crash the server whenever I inadvertently attempt to log a massive entry.
Environment details
@google-cloud/logging-bunyan
version: 4.2.2The text was updated successfully, but these errors were encountered: