TimeForANinja / node-ytsr

Do anonymous YouTube search requests.
MIT License
284 stars 66 forks source link

Cannot read properties of undefined (reading 'reelPlayerHeaderRenderer') #181

Closed 01choco closed 1 year ago

01choco commented 1 year ago

I am making music player bot, and this error crushed. want to know how to solve this problem.. mtxttc29hm-1676900691501.txt

RisedSky commented 1 year ago

i have the same error

ArmyaAli commented 1 year ago

Same here

Matix2021 commented 1 year ago

Same

ghost commented 1 year ago

I had the same error but to solve this problem I had to use a modified version of ytsr and it's working fine!

if you want to install just use this repository: https://github.com/Yonle/node-ytsr/

sirlupusdev commented 1 year ago

I'm also having this issue, however, the request still returns with a result. Nevertheless, I'll try the solution by @rablonkk.

ArmyaAli commented 1 year ago

Switching to a fork of the library maintained by someone else, isn't really a solution lol ^^ but it is good if you want a quick resolution

I believe there already is a PR for this, just a matter of time to be merged

ghost commented 1 year ago

it may not even be a definitive solution, but it can help us in a short period of time. while the problem is not solved definitively.

idoob commented 1 year ago

It seems like a handful people have asked in the support Discord for a review on pending PRs without success. Although it's not ideal, if this issue is blowing up your logs you can override ytsr in your dependencies with @Yonle's fork which includes these fixes.

Here's an example of what I did with NPM.

// package.json
{
   ...
  "overrides": {
    "ytsr": "github:Yonle/node-ytsr"
},

Not a great long-term fix but at least it prevents logs from blowing up with the errors.

ArmyaAli commented 1 year ago

It seems like a handful people have asked in the support Discord for a review on pending PRs without success. Although it's not ideal, if this issue is blowing up your logs you can override ytsr in your dependencies with @Yonle's fork which includes these fixes.

Here's an example of what I did with NPM.

// package.json
{
   ...
  "overrides": {
    "ytsr": "github:Yonle/node-ytsr"
},

Not a great long-term fix but at least it prevents logs from blowing up with the errors.

Hey that's pretty neat with the overrides, thanks for this

TimeForANinja commented 1 year ago

dupe of #174 still thanks for opening 👍