-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Node 22: DeprecationWarning: The punycode
module is deprecated.
#1148
New issue
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
Comments
For anyone else stumbling upon this. The current most up to date context can be found here: #402 (comment) -> They are working on internally resturcturing the API which would fix this issue; it's taking some time. |
Latest update: The upcoming v5 release uses native See https://community.openai.com/t/your-feedback-requested-node-js-sdk-5-0-0-alpha/1063774 |
Hello, whats the status of this v5 release? is there any planned release? Else, maybe you could merge the change in the next v4 branch. Thank you! PS: This seems to be the same issue as #1207 |
The upcoming v5 release has now been promoted from
|
Closing this as a dupe of #1207, v5 will be promoted to stable soon :) |
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
Importing and using
openai
in the current LTS version of Node (v22) will give the following warning:To Reproduce
openai
package and use it in any way, e.g.The expected behaviour is that the
openai
works without warnings in the current LTS version of Node.There is no warning in older LTS versions of Node such as Node v18 and Node v20. However, as of this week, those are now in maintenance mode.
There are previous issues (#527 #750 #780) and a PR (#402) addressing this, but they have all been closed without any resolution or any new issues tracking the progress.
The root cause is the usage of
node-fetch@2.7.0
.Code snippets
No response
OS
macOS
Node version
Node v22
Library version
openai v4.68.4
The text was updated successfully, but these errors were encountered: