Skip to content
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

punycode Deprecation Warning via node-fetch Dependency #1207

Open
TomasAyerbe opened this issue Nov 28, 2024 · 0 comments
Open

punycode Deprecation Warning via node-fetch Dependency #1207

TomasAyerbe opened this issue Nov 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TomasAyerbe
Copy link

TomasAyerbe commented Nov 28, 2024

Describe the bug

When using the openai package in my Node.js project, I encounter the following deprecation warning:

image

After investigating, I found that the openai package relies on [email protected], which in turn depends on [email protected]. The whatwg-url package is causing the warning as it depends on the deprecated punycode module.

image

To Reproduce

  1. Install openai@latest in a Node.js project.

  2. Run any script importing the openai package.

  3. Observe the deprecation warning related to punycode.

Code snippets

No response

OS

Fedora

Node version

22.11.0

Library version

4.73.1

@TomasAyerbe TomasAyerbe added the bug Something isn't working label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant