generated from metcoder95/lib_template
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Describe the bug
Process crashed with error
node:internal/worker:266
this[kPort].postMessage({
^
DOMException [DataCloneError]: (error) => {
if (error) {
console.error("failed to write to...<omitted>... } could not be cloned.
at new DOMException (node:internal/per_context/domexception:53:5)
at new Worker (node:internal/worker:266:17)
at createWorker (/app/node_modules/.pnpm/[email protected]/node_modules/thread-stream/index.js:55:18)
at new ThreadStream (/app/node_modules/.pnpm/[email protected]/node_modules/thread-stream/index.js:230:19)
at buildStream (/app/node_modules/.pnpm/[email protected]/node_modules/pino/lib/transport.js:21:18)
at transport (/app/node_modules/.pnpm/[email protected]/node_modules/pino/lib/transport.js:116:10)
at normalizeArgs (/app/node_modules/.pnpm/[email protected]/node_modules/pino/lib/tools.js:316:16)
at pino (/app/node_modules/.pnpm/[email protected]/node_modules/pino/pino.js:90:28)
To Reproduce
setting log options
logOptions: {
defaultWriteDeleteCallback: (error: unknown) => {
if (error) {
console.error("failed to write to Google Cloud Logging", { error });
}
},
} as unknown as CloudPineOptions["cloudLoggingOptions"]["logOptions"],
Expected behavior
Passing logOptions with defaultWriteDeleteCallback
should work
Additional context
The failure happens before invoking CloudPine
contructor.
Madpaia
Metadata
Metadata
Assignees
Labels
No labels