Jump to content

Bug Report: Outdated Discord API (v9) & Node.js Stream Crash on Startup

Pending 1.4.4

Lady Mia
Lady Mia

Posted

The plugin crashes instantly on server startup when running on modern Node.js environments (such as Node 22+). It throws an unhandled ERR_STREAM_PREMATURE_CLOSE fetch error while attempting to push slash commands and connect to the gateway.

(node:34) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
FetchError: Invalid response body while trying to fetch https://discord.com/api/v9/gateway/bot: Premature close
    at Gunzip.<anonymous> (.../node_modules/node-fetch/lib/index.js:400:12)
    ...
  type: 'system',
  errno: 'ERR_STREAM_PREMATURE_CLOSE',
  code: 'ERR_STREAM_PREMATURE_CLOSE'
}

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.6m
Total downloads
Customers
11.4k
Customers served
Files Sold
163.6k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.