We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
I'm getting below error when I log as below
const reqBody = await event.request.formData(); log.info(reqBody)
event is https://kit.svelte.dev/docs/types#public-types-requestevent. but it works fine if I do log.info(JSON.stringify(reqBody))
TypeError Cannot read properties of undefined (reading 'reduce') error stack: • undici [nodejs.util.inspect.custom] internal/deps/undici/undici:4887 • inspect formatValue internal/util/inspect:806 • inspect inspect internal/util/inspect:365 • inspect formatWithOptionsInternal internal/util/inspect:2304 • inspect formatWithOptions internal/util/inspect:2166 • index.js Object.transportFormatted /node_modules/.pnpm/[email protected]/node_modules/tslog/dist/esm/runtime/nodejs/index.js:107 • BaseLogger.js Logger.log /node_modules/.pnpm/[email protected]/node_modules/tslog/dist/esm/BaseLogger.js:101 • index.js Logger.info /node_modules/.pnpm/[email protected]/node_modules/tslog/dist/esm/index.js:26 •
• task_queues process.processTicksAndRejections internal/process/task_queues:95
Screenshots
Additional context Add any other context about the problem here.
Node.js Version v20.16.0
Same issue with Bun 1.1.21 as well.
OS incl. Version Ubuntu 24.04 LTS 6.8.0-39-generic
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I'm getting below error when I log as below
const reqBody = await event.request.formData();
log.info(reqBody)
event is https://kit.svelte.dev/docs/types#public-types-requestevent.
but it works fine if I do log.info(JSON.stringify(reqBody))
TypeError Cannot read properties of undefined (reading 'reduce')
error stack:
• undici [nodejs.util.inspect.custom]
internal/deps/undici/undici:4887
• inspect formatValue
internal/util/inspect:806
• inspect inspect
internal/util/inspect:365
• inspect formatWithOptionsInternal
internal/util/inspect:2304
• inspect formatWithOptions
internal/util/inspect:2166
• index.js Object.transportFormatted
/node_modules/.pnpm/[email protected]/node_modules/tslog/dist/esm/runtime/nodejs/index.js:107
• BaseLogger.js Logger.log
/node_modules/.pnpm/[email protected]/node_modules/tslog/dist/esm/BaseLogger.js:101
• index.js Logger.info
/node_modules/.pnpm/[email protected]/node_modules/tslog/dist/esm/index.js:26
•
• task_queues process.processTicksAndRejections
internal/process/task_queues:95
Screenshots
Additional context
Add any other context about the problem here.
Node.js Version
v20.16.0
Same issue with Bun 1.1.21 as well.
OS incl. Version
Ubuntu 24.04 LTS 6.8.0-39-generic
The text was updated successfully, but these errors were encountered: