Title: Error [ERR_INTERNAL_ASSERTION]: TypeError [ERR_INVALID_THIS]: Value of "this" must be of type EventTarget · Issue #46323 · nodejs/node · GitHub
Open Graph Title: Error [ERR_INTERNAL_ASSERTION]: TypeError [ERR_INVALID_THIS]: Value of "this" must be of type EventTarget · Issue #46323 · nodejs/node
X Title: Error [ERR_INTERNAL_ASSERTION]: TypeError [ERR_INVALID_THIS]: Value of "this" must be of type EventTarget · Issue #46323 · nodejs/node
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 stor...
Open Graph 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} ...
X 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} ...
Opengraph URL: https://github.com/nodejs/node/issues/46323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error [ERR_INTERNAL_ASSERTION]: TypeError [ERR_INVALID_THIS]: Value of \"this\" must be of type EventTarget","articleBody":"### Version\r\n\r\nv18.13.0\r\n\r\n### Platform\r\n\r\nLinux ce9205dbff40 5.10.76-linuxkit #1 SMP PREEMPT Mon Nov 8 11:22:26 UTC 2021 aarch64 GNU/Linux\r\n\r\n### Subsystem\r\n\r\n_No response_\r\n\r\n### What steps will reproduce the bug?\r\n\r\n```js\r\nimport {Storage} from '@google-cloud/storage';\r\nconst storage = new Storage(...).bucket(...);\r\nawait storage.file(...).save(...);\r\n```\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\nConsistently.\r\n\r\nEdit: I also confirmed that downgrading to Node 18.12.1 resolves the issue.\r\n\r\n### What is the expected behavior?\r\n\r\nFunction should succeed with no errors.\r\n\r\n### What do you see instead?\r\n\r\n```\r\nError [ERR_INTERNAL_ASSERTION]: Error [ERR_INTERNAL_ASSERTION]: TypeError [ERR_INVALID_THIS]: Value of \"this\" must be of type EventTarget\r\n at new NodeError (node:internal/errors:400:5)\r\n at [nodejs.util.inspect.custom] (node:internal/event_target:758:13)\r\n at formatValue (node:internal/util/inspect:806:19)\r\n at formatProperty (node:internal/util/inspect:1920:11)\r\n at formatRaw (node:internal/util/inspect:1055:9)\r\n at formatValue (node:internal/util/inspect:841:10)\r\n at formatProperty (node:internal/util/inspect:1920:11)\r\n at formatRaw (node:internal/util/inspect:1055:9)\r\n at formatValue (node:internal/util/inspect:841:10)\r\n at inspect (node:internal/util/inspect:365:10)\r\nThis is caused by either a bug in Node.js or incorrect usage of Node.js internals.\r\nPlease open an issue with this stack trace at https://github.com/nodejs/node/issues\r\n```\r\n\r\n### Additional information\r\n\r\nRelated issue: https://github.com/googleapis/nodejs-storage/issues/2133","author":{"url":"https://github.com/buu700","@type":"Person","name":"buu700"},"datePublished":"2023-01-23T23:17:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/46323/node/issues/46323"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ea604f48-0531-f4fa-4ec1-6fb1dfc7c69e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C838:2630A2:152801E:1D7C060:6A4CB327 |
| html-safe-nonce | a641369ceae7e0e586a72acb3cf89215030d9d2b5cbcd80e419e3ebb41081ca3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODM4OjI2MzBBMjoxNTI4MDFFOjFEN0MwNjA6NkE0Q0IzMjciLCJ2aXNpdG9yX2lkIjoiNjUzMTcwOTMzODM4MDk3MjgzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eb335659c90477d07d3ad9a3fe7e7d62b61565bc8a9c69c49d77e46a185f3850 |
| hovercard-subject-tag | issue:1553985933 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/46323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/04e3e6f7991bff90bc25643e611c6ad44f6daf461a66434e3b6ff867c691be0c/nodejs/node/issues/46323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/04e3e6f7991bff90bc25643e611c6ad44f6daf461a66434e3b6ff867c691be0c/nodejs/node/issues/46323 |
| og:image:alt | 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} ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | buu700 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width