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

DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. #7

Open
RobDiek opened this issue Aug 19, 2024 · 0 comments

Comments

@RobDiek
Copy link

RobDiek commented Aug 19, 2024

Hi

seems one of the modules is deprecated;

Filtering initial file for only YouTube Music results
Found 15036 Youtube Music songs in watch-history.json
watch-history.json does not have album names, grabbing them from Youtube API (only 90% success rate)
If the program stops before it says file written, an error occured, just close and re-run
Api Querying items 0 to 1000
(node:7996) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
node:_http_outgoing:702
validateHeaderValue(name, value);
^

TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "X-Goog-Visitor-Id"
at ClientRequest.setHeader (node:_http_outgoing:702:3)
at new ClientRequest (node:_http_client:295:14)
at Object.request (node:https:379:10)
at RedirectableRequest._performRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/follow-redirects/index.js:169:24)
at new RedirectableRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/follow-redirects/index.js:66:8)
at wrappedProtocol.request (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/follow-redirects/index.js:307:14)
at dispatchHttpRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/axios/lib/adapters/http.js:179:25)
at new Promise ()
at httpAdapter (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/axios/lib/adapters/http.js:21:10)
at dispatchRequest (/Users/robindieker/Downloads/youtube-music-history-scrobbler-main/node_modules/axios/lib/core/dispatchRequest.js:52:10) {
code: 'ERR_HTTP_INVALID_HEADER_VALUE'
}

Node.js v22.6.0

Any idea how to fix? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant