-
Notifications
You must be signed in to change notification settings - Fork 46
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
Invalid value "undefined" for header "X-Goog-Visitor-Id" #30
Comments
i guess b52b2b0 wasn't published on npm |
@ArakJamman @mcitomiapplecat I had the same problem. For now, go to node_modules/youtube-music-api/src/index.js and replace line 49 with 'X-Goog-Visitor-Id': this.ytcfg.VISITOR_DATA || ''. |
The issues looks to be that you need to wait for Recommend using async/await pattern so you can do this: await api.initizalize();
const result = await api.search('search term', 'song', 1); I created a small REST api app for this package where you can see me doing the async/await stuff. |
Hi, there is a workaround if you are not able to make it work:
|
This is a very useful package, but I am having some problems when searching with the api. It seems like this issue was opened and closed in b52b2b0, but I am still having this issue...
When I use the api like so, the search is successful:

However, when I use the api like this, the search is unsuccessful:


Any fixes for this? Thanks...
The text was updated successfully, but these errors were encountered: