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

TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "X-Goog-Visitor-Id" #2

Open
samtaylorr opened this issue Feb 10, 2023 · 1 comment

Comments

@samtaylorr
Copy link

Error:

node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

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

Breaks after "Api Querying items 0 to 1000"

samtaylorr pushed a commit to samtaylorr/youtube-music-history-scrobbler that referenced this issue Feb 10, 2023
samtaylorr pushed a commit to samtaylorr/youtube-music-history-scrobbler that referenced this issue Feb 10, 2023
@samtaylorr
Copy link
Author

Similar fix was given here: emresenyuva/youtube-music-api@b52b2b0, after the issue was raised here: emresenyuva/youtube-music-api#9

So I just updated that at this pull request: #3, feel free to close with merge if you think it helped ;)

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