-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.eventtargetIssues and PRs related to the EventTarget implementation.Issues and PRs related to the EventTarget implementation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
Description
Version
v18.13.0
Platform
Linux ce9205dbff40 5.10.76-linuxkit #1 SMP PREEMPT Mon Nov 8 11:22:26 UTC 2021 aarch64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
import {Storage} from '@google-cloud/storage';
const storage = new Storage(...).bucket(...);
await storage.file(...).save(...);How often does it reproduce? Is there a required condition?
Consistently.
Edit: I also confirmed that downgrading to Node 18.12.1 resolves the issue.
What is the expected behavior?
Function should succeed with no errors.
What do you see instead?
Error [ERR_INTERNAL_ASSERTION]: Error [ERR_INTERNAL_ASSERTION]: TypeError [ERR_INVALID_THIS]: Value of "this" must be of type EventTarget
at new NodeError (node:internal/errors:400:5)
at [nodejs.util.inspect.custom] (node:internal/event_target:758:13)
at formatValue (node:internal/util/inspect:806:19)
at formatProperty (node:internal/util/inspect:1920:11)
at formatRaw (node:internal/util/inspect:1055:9)
at formatValue (node:internal/util/inspect:841:10)
at formatProperty (node:internal/util/inspect:1920:11)
at formatRaw (node:internal/util/inspect:1055:9)
at formatValue (node:internal/util/inspect:841:10)
at inspect (node:internal/util/inspect:365:10)
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
Additional information
Related issue: googleapis/nodejs-storage#2133
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.eventtargetIssues and PRs related to the EventTarget implementation.Issues and PRs related to the EventTarget implementation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.